mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
newest version of sleep patch
This commit is contained in:
@@ -424,7 +424,7 @@ static void encode_mb_row(VP8_COMP *cpi, VP8_COMMON *cm, int mb_row,
|
||||
if ((mb_col & (nsync - 1)) == 0) {
|
||||
while (mb_col > (*last_row_current_mb_col - nsync)) {
|
||||
x86_pause_hint();
|
||||
thread_sleep(0);
|
||||
thread_sleep(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -108,7 +108,7 @@ static THREAD_FUNCTION thread_encoding_proc(void *p_data) {
|
||||
if ((mb_col & (nsync - 1)) == 0) {
|
||||
while (mb_col > (*last_row_current_mb_col - nsync)) {
|
||||
x86_pause_hint();
|
||||
thread_sleep(0);
|
||||
thread_sleep(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user