summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/time.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-11 16:01:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-11 16:01:37 +0000
commit98ed15e30fffa76a0dc298e1d68cf21a70f90bae (patch)
tree1c0abe2ccf04a318c26debad0ca59420de898553 /cpukit/posix/src/time.c
parentnew file. (diff)
downloadrtems-98ed15e30fffa76a0dc298e1d68cf21a70f90bae.tar.bz2
Basic signal functionality appears to work. pthread_kill() can successfully
send signals to the current thread or to another blocked thread. nanosleep() can be interrupted by a signal and return the time remaining. Post switch extension added to dispatch posix signal handlers.
Diffstat (limited to 'cpukit/posix/src/time.c')
-rw-r--r--cpukit/posix/src/time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/posix/src/time.c b/cpukit/posix/src/time.c
index 3860ae993d..10808dd6b5 100644
--- a/cpukit/posix/src/time.c
+++ b/cpukit/posix/src/time.c
@@ -247,7 +247,10 @@ int nanosleep(
ticks = _POSIX_Timespec_to_interval( rqtp );
_Thread_Disable_dispatch();
- _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
+ _Thread_Set_state(
+ _Thread_Executing,
+ STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
+ );
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended, /* XXX may need to be POSIX specific */