4.115
Last change
on this file since 864d3475 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/threadsync.h |
---|
3 | * |
---|
4 | * @brief Synchronize Thread Blocking Operations with Actions in an ISR |
---|
5 | * |
---|
6 | * This include file contains all constants and structures associated |
---|
7 | * with synchronizing a thread blocking operation with potential |
---|
8 | * actions in an ISR. |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | * COPYRIGHT (c) 1989-2008. |
---|
13 | * On-Line Applications Research Corporation (OAR). |
---|
14 | * |
---|
15 | * The license and distribution terms for this file may be |
---|
16 | * found in the file LICENSE in this distribution or at |
---|
17 | * http://www.rtems.org/license/LICENSE. |
---|
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 | * @ingroup Score |
---|
27 | * |
---|
28 | * This handler encapsulates functionality related to the management of |
---|
29 | * synchronization critical sections during blocking operations. |
---|
30 | */ |
---|
31 | /**@{*/ |
---|
32 | |
---|
33 | #ifdef __cplusplus |
---|
34 | extern "C" { |
---|
35 | #endif |
---|
36 | |
---|
37 | /** |
---|
38 | * The following enumerated types indicate what happened while the thread |
---|
39 | * blocking was in the synchronization window. |
---|
40 | */ |
---|
41 | typedef enum { |
---|
42 | THREAD_BLOCKING_OPERATION_SYNCHRONIZED, |
---|
43 | THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED, |
---|
44 | THREAD_BLOCKING_OPERATION_TIMEOUT, |
---|
45 | THREAD_BLOCKING_OPERATION_SATISFIED |
---|
46 | } Thread_blocking_operation_States; |
---|
47 | |
---|
48 | /* |
---|
49 | * Operations require a thread pointer so they are prototyped |
---|
50 | * in thread.h |
---|
51 | */ |
---|
52 | |
---|
53 | #ifdef __cplusplus |
---|
54 | } |
---|
55 | #endif |
---|
56 | |
---|
57 | /**@}*/ |
---|
58 | |
---|
59 | #endif |
---|
60 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.