diff options
author | Gedare Bloom <gedare@rtems.org> | 2016-06-09 11:33:15 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2016-06-23 14:22:07 -0400 |
commit | 85e93583aa34ac1efb6d4cd18e1986e5254da581 (patch) | |
tree | 222f8e739ddbc8e8a726725a586eef35a1dffd56 /cpukit/score/src/futex.c | |
parent | b679b4929d8c6fb8d25ace3655da4a040341705c (diff) |
cpukit: Add and use Watchdog_Discipline.
Clock disciplines may be WATCHDOG_RELATIVE, WATCHDOG_ABSOLUTE,
or WATCHDOG_NO_TIMEOUT. A discipline of WATCHDOG_RELATIVE with
a timeout of WATCHDOG_NO_TIMEOUT is equivalent to a discipline
of WATCHDOG_NO_TIMEOUT.
updates #2732
Diffstat (limited to 'cpukit/score/src/futex.c')
-rw-r--r-- | cpukit/score/src/futex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/futex.c b/cpukit/score/src/futex.c index a192509f5c..55543f356f 100644 --- a/cpukit/score/src/futex.c +++ b/cpukit/score/src/futex.c @@ -89,12 +89,12 @@ int _Futex_Wait( struct _Futex_Control *_futex, int *uaddr, int val ) if ( *uaddr == val ) { _Thread_queue_Context_set_expected_level( &queue_context, 1 ); + _Thread_queue_Context_set_discipline( &queue_context, WATCHDOG_NO_TIMEOUT ); _Thread_queue_Enqueue_critical( &futex->Queue.Queue, FUTEX_TQ_OPERATIONS, executing, STATES_WAITING_FOR_SYS_LOCK_FUTEX, - WATCHDOG_NO_TIMEOUT, &queue_context ); eno = 0; |