summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-07 17:09:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-07 17:09:20 +0000
commit5a909149ca1ed7232c61625856ce7eff232930c0 (patch)
tree46c8fa6e7de8bb904ab69898e8f52c9dcef64228 /c/src/exec/posix
parentPatch from Jiri Gaisler <jgais@ws.estec.esa.nl> to allow stacksize (diff)
downloadrtems-5a909149ca1ed7232c61625856ce7eff232930c0.tar.bz2
Made all calls to _Thread_Yield_processor consistent in how they are
wrapped by calls to _Thread_Enable_dispatch and _Thread_Disable_dispatch.
Diffstat (limited to 'c/src/exec/posix')
-rw-r--r--c/src/exec/posix/src/time.c5
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;