4.104.115
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/threadsync.h |
---|
3 | * |
---|
4 | * This include file contains all constants and structures associated |
---|
5 | * with synchronizing a thread blocking operation with potential |
---|
6 | * actions in an ISR. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2008. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef _RTEMS_SCORE_THREAD_SYNC_H |
---|
21 | #define _RTEMS_SCORE_THREAD_SYNC_H |
---|
22 | |
---|
23 | /** |
---|
24 | * @defgroup ScoreThreadSync Thread Blocking Operation Synchronization Handler |
---|
25 | * |
---|
26 | * This handler encapsulates functionality related to the management of |
---|
27 | * synchronization critical sections during blocking operations. |
---|
28 | */ |
---|
29 | /**@{*/ |
---|
30 | |
---|
31 | #ifdef __cplusplus |
---|
32 | extern "C" { |
---|
33 | #endif |
---|
34 | |
---|
35 | /** |
---|
36 | * The following enumerated types indicate what happened while the thread |
---|
37 | * blocking was in the synchronization window. |
---|
38 | */ |
---|
39 | typedef enum { |
---|
40 | THREAD_BLOCKING_OPERATION_SYNCHRONIZED, |
---|
41 | THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED, |
---|
42 | THREAD_BLOCKING_OPERATION_TIMEOUT, |
---|
43 | THREAD_BLOCKING_OPERATION_SATISFIED |
---|
44 | } Thread_blocking_operation_States; |
---|
45 | |
---|
46 | /* |
---|
47 | * Operations require a thread pointer so they are prototyped |
---|
48 | * in thread.h |
---|
49 | */ |
---|
50 | |
---|
51 | #ifdef __cplusplus |
---|
52 | } |
---|
53 | #endif |
---|
54 | |
---|
55 | /**@}*/ |
---|
56 | |
---|
57 | #endif |
---|
58 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.