diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-11 16:01:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-11 16:01:37 +0000 |
commit | 98ed15e30fffa76a0dc298e1d68cf21a70f90bae (patch) | |
tree | 1c0abe2ccf04a318c26debad0ca59420de898553 /c/src/exec/posix/src/time.c | |
parent | new file. (diff) | |
download | rtems-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 'c/src/exec/posix/src/time.c')
-rw-r--r-- | c/src/exec/posix/src/time.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/exec/posix/src/time.c b/c/src/exec/posix/src/time.c index 3860ae993d..10808dd6b5 100644 --- a/c/src/exec/posix/src/time.c +++ b/c/src/exec/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 */ |