diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-22 11:35:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-22 11:38:57 +0200 |
commit | 49d436497ed278f1d02b45c6f336a21c0b7ab93a (patch) | |
tree | 9c5cedd971fd222ab8e01b3493c66bdfdabcbf16 /cpukit/posix/src/mutextrylock.c | |
parent | smptests/smpcache01: Enable interrupts before waiting for other CPUs (diff) | |
download | rtems-49d436497ed278f1d02b45c6f336a21c0b7ab93a.tar.bz2 |
score: Delete bogus THREAD_QUEUE_WAIT_FOREVER
It makes no sense to use this indirection since the type for timeout
values is Watchdog_Interval.
Diffstat (limited to 'cpukit/posix/src/mutextrylock.c')
-rw-r--r-- | cpukit/posix/src/mutextrylock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutextrylock.c b/cpukit/posix/src/mutextrylock.c index 332f486b49..e765e91e8e 100644 --- a/cpukit/posix/src/mutextrylock.c +++ b/cpukit/posix/src/mutextrylock.c @@ -37,7 +37,7 @@ int pthread_mutex_trylock( pthread_mutex_t *mutex ) { - int r = _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER ); + int r = _POSIX_Mutex_Lock_support( mutex, false, WATCHDOG_NO_TIMEOUT ); if ( r == EDEADLK ) r = EBUSY; return r; |