From f23d4706169d68d3c4e90b297650f89c272716f4 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 9 Jun 2016 11:33:15 -0400 Subject: 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 --- cpukit/posix/src/mutexlocksupp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpukit/posix/src/mutexlocksupp.c') diff --git a/cpukit/posix/src/mutexlocksupp.c b/cpukit/posix/src/mutexlocksupp.c index d3d07f68e8..1da6238d1d 100644 --- a/cpukit/posix/src/mutexlocksupp.c +++ b/cpukit/posix/src/mutexlocksupp.c @@ -63,6 +63,7 @@ int _POSIX_Mutex_Lock_support( } executing = _Thread_Executing; + _Thread_queue_Context_set_relative_timeout( &queue_context, timeout ); switch ( the_mutex->protocol ) { case POSIX_MUTEX_PRIORITY_CEILING: @@ -70,7 +71,6 @@ int _POSIX_Mutex_Lock_support( &the_mutex->Mutex, executing, wait, - timeout, _POSIX_Mutex_Lock_nested, &queue_context ); @@ -81,7 +81,6 @@ int _POSIX_Mutex_Lock_support( POSIX_MUTEX_NO_PROTOCOL_TQ_OPERATIONS, executing, wait, - timeout, _POSIX_Mutex_Lock_nested, &queue_context ); @@ -92,7 +91,6 @@ int _POSIX_Mutex_Lock_support( &the_mutex->Mutex.Recursive, executing, wait, - timeout, _POSIX_Mutex_Lock_nested, &queue_context ); -- cgit v1.2.3