From d063e7b3d8733f5d1829f5b19c99be81f567fecf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 Jan 2017 08:42:04 +0100 Subject: score: Replace STATES_DELAYING Replace STATES_DELAYING with STATES_WAITING_FOR_TIME. There is no need for separate timeout thread states. The Thread_Control::Timer::header and Watchdog_Control::cpu members can be used to figure out the kind of timeout. --- cpukit/posix/src/nanosleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix/src') diff --git a/cpukit/posix/src/nanosleep.c b/cpukit/posix/src/nanosleep.c index 10158ff44b..13f4536f6e 100644 --- a/cpukit/posix/src/nanosleep.c +++ b/cpukit/posix/src/nanosleep.c @@ -49,7 +49,7 @@ static inline int nanosleep_helper( _Thread_queue_Context_initialize( &queue_context ); _Thread_queue_Context_set_thread_state( &queue_context, - STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL + STATES_WAITING_FOR_TIME | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_queue_Context_set_enqueue_callout( &queue_context, -- cgit v1.2.3