mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code according to inspect of clion. 0.9.219
This commit is contained in:
parent
e0b1e044de
commit
bc6616bd1f
30 changed files with 21 additions and 92 deletions
|
@ -26,10 +26,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <srs_kernel_error.hpp>
|
||||
#include <srs_kernel_log.hpp>
|
||||
|
||||
// const time for st to convert to us
|
||||
#define SRS_TIME_MILLISECONDS 1000
|
||||
#define SRS_TIME_SECONDS 1000000
|
||||
|
||||
ISrsThreadHandler::ISrsThreadHandler()
|
||||
{
|
||||
}
|
||||
|
@ -105,7 +101,7 @@ int SrsThread::start()
|
|||
|
||||
// wait for cid to ready, for parent thread to get the cid.
|
||||
while (_cid < 0 && loop) {
|
||||
st_usleep(10 * SRS_TIME_MILLISECONDS);
|
||||
st_usleep(10 * 1000);
|
||||
}
|
||||
|
||||
// now, cycle thread can run.
|
||||
|
@ -154,7 +150,7 @@ void SrsThread::thread_cycle()
|
|||
|
||||
// wait for cid to ready, for parent thread to get the cid.
|
||||
while (!can_run && loop) {
|
||||
st_usleep(10 * SRS_TIME_MILLISECONDS);
|
||||
st_usleep(10 * 1000);
|
||||
}
|
||||
|
||||
while (loop) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue