4.115
Last change
on this file since be1b8a7 was
35210b12,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/19/13 at 10:08:02
|
posix: Create condition variable impl header
Move implementation specific parts of cond.h and cond.inl into new
header file condimpl.h. The cond.h contains now only the application
visible API.
|
-
Property mode set to
100644
|
File size:
909 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Waiting on a Condition |
---|
5 | * @ingroup POSIXAPI |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2007. |
---|
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.com/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <pthread.h> |
---|
22 | #include <errno.h> |
---|
23 | |
---|
24 | #include <rtems/system.h> |
---|
25 | #include <rtems/score/object.h> |
---|
26 | #include <rtems/score/states.h> |
---|
27 | #include <rtems/score/watchdog.h> |
---|
28 | #include <rtems/posix/condimpl.h> |
---|
29 | #include <rtems/posix/time.h> |
---|
30 | #include <rtems/posix/muteximpl.h> |
---|
31 | |
---|
32 | /* |
---|
33 | * 11.4.4 Waiting on a Condition, P1003.1c/Draft 10, p. 105 |
---|
34 | */ |
---|
35 | |
---|
36 | int pthread_cond_wait( |
---|
37 | pthread_cond_t *cond, |
---|
38 | pthread_mutex_t *mutex |
---|
39 | ) |
---|
40 | { |
---|
41 | return _POSIX_Condition_variables_Wait_support( |
---|
42 | cond, |
---|
43 | mutex, |
---|
44 | THREAD_QUEUE_WAIT_FOREVER, |
---|
45 | false |
---|
46 | ); |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.