diff options
Diffstat (limited to 'c/src/exec/posix')
-rw-r--r-- | c/src/exec/posix/src/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/time.c b/c/src/exec/posix/src/time.c index a14eb71f8e..b4367fac4c 100644 --- a/c/src/exec/posix/src/time.c +++ b/c/src/exec/posix/src/time.c @@ -314,8 +314,9 @@ int nanosleep( */ if ( !ticks ) { - _Thread_Yield_processor(); - _Thread_Dispatch(); + _Thread_Disable_dispatch(); + _Thread_Yield_processor(); + _Thread_Enable_dispatch(); if ( rmtp ) { rmtp->tv_sec = 0; rmtp->tv_nsec = 0; |