4.115
Last change
on this file since 49d4364 was
49d4364,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/22/15 at 09:35:14
|
score: Delete bogus THREAD_QUEUE_WAIT_FOREVER
It makes no sense to use this indirection since the type for timeout
values is Watchdog_Interval.
|
-
Property mode set to
100644
|
File size:
733 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Lock a Semaphore |
---|
5 | * @ingroup POSIX_SEMAPHORE |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2008. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <stdarg.h> |
---|
22 | |
---|
23 | #include <errno.h> |
---|
24 | #include <fcntl.h> |
---|
25 | #include <pthread.h> |
---|
26 | #include <semaphore.h> |
---|
27 | #include <limits.h> |
---|
28 | |
---|
29 | #include <rtems/system.h> |
---|
30 | #include <rtems/posix/semaphoreimpl.h> |
---|
31 | #include <rtems/posix/time.h> |
---|
32 | #include <rtems/seterr.h> |
---|
33 | |
---|
34 | int sem_trywait( |
---|
35 | sem_t *sem |
---|
36 | ) |
---|
37 | { |
---|
38 | return _POSIX_Semaphore_Wait_support(sem, false, WATCHDOG_NO_TIMEOUT); |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.