5
Last change
on this file since b5bfaaf9 was
b5bfaaf9,
checked in by Gedare Bloom <gedare@…>, on 06/23/16 at 20:55:38
|
posix: cond_timedwait remember and use clock from condattr
updates #2745
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief POSIX Condition Variables Private Support |
---|
5 | * |
---|
6 | * This include file contains all the private support information for |
---|
7 | * POSIX condition variables. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 1989-2011. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_POSIX_COND_H |
---|
20 | #define _RTEMS_POSIX_COND_H |
---|
21 | |
---|
22 | #include <rtems/score/object.h> |
---|
23 | #include <rtems/score/threadq.h> |
---|
24 | |
---|
25 | #include <pthread.h> |
---|
26 | |
---|
27 | #ifdef __cplusplus |
---|
28 | extern "C" { |
---|
29 | #endif |
---|
30 | |
---|
31 | /** |
---|
32 | * @defgroup POSIX_COND_VARS POSIX Condition Variables |
---|
33 | * |
---|
34 | * @ingroup POSIXAPI |
---|
35 | * |
---|
36 | */ |
---|
37 | /**@{**/ |
---|
38 | |
---|
39 | /* |
---|
40 | * Data Structure used to manage a POSIX condition variable |
---|
41 | */ |
---|
42 | |
---|
43 | typedef struct { |
---|
44 | Objects_Control Object; |
---|
45 | Thread_queue_Control Wait_queue; |
---|
46 | pthread_mutex_t mutex; |
---|
47 | clockid_t clock; |
---|
48 | } POSIX_Condition_variables_Control; |
---|
49 | |
---|
50 | #ifdef __cplusplus |
---|
51 | } |
---|
52 | #endif |
---|
53 | |
---|
54 | /** @} */ |
---|
55 | |
---|
56 | #endif |
---|
57 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.