RKH
rkhsma_sync.h
Go to the documentation of this file.
1 /*
2  * --------------------------------------------------------------------------
3  *
4  * Framework RKH
5  * -------------
6  *
7  * State-machine framework for reactive embedded systems
8  *
9  * Copyright (C) 2010 Leandro Francucci.
10  * All rights reserved. Protected by international copyright laws.
11  *
12  *
13  * RKH is free software: you can redistribute it and/or modify it under the
14  * terms of the GNU General Public License as published by the Free Software
15  * Foundation, either version 3 of the License, or (at your option) any
16  * later version.
17  *
18  * RKH is distributed in the hope that it will be useful, but WITHOUT ANY
19  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21  * more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with RKH, see copying.txt file.
25  *
26  * Contact information:
27  * RKH web site: http://sourceforge.net/projects/rkh-reactivesys/
28  * e-mail: francuccilea@gmail.com
29  * ---------------------------------------------------------------------------
30  */
31 
39 /* -------------------------- Development history -------------------------- */
40 /*
41  * 2017.05.15 LeFr v2.4.05 Initial version
42  */
43 
44 /* -------------------------------- Authors -------------------------------- */
45 /*
46  * LeFr Leandro Francucci francuccilea@gmail.com
47  */
48 
49 /* --------------------------------- Notes --------------------------------- */
50 /* --------------------------------- Module -------------------------------- */
51 #ifndef __RKHSMA_SYNC_H__
52 #define __RKHSMA_SYNC_H__
53 
54 /* ----------------------------- Include files ----------------------------- */
55 #include "rkhsma.h"
56 
57 /* ---------------------- External C language linkage ---------------------- */
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
62 /* --------------------------------- Macros -------------------------------- */
63 /* -------------------------------- Constants ------------------------------ */
64 /* ------------------------------- Data types ------------------------------ */
65 /* -------------------------- External variables --------------------------- */
66 /* -------------------------- Function prototypes -------------------------- */
73 void rkh_sma_block(RKH_SMA_T *const me);
74 
83 void rkh_sma_setReady(RKH_SMA_T *const me);
84 
92 void rkh_sma_setUnready(RKH_SMA_T *const me);
93 
94 /* -------------------- External C language linkage end -------------------- */
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 /* ------------------------------ Module end ------------------------------- */
100 #endif
101 
102 /* ------------------------------ End of file ------------------------------ */
void rkh_sma_setUnready(RKH_SMA_T *const me)
Informs the underlying kernel that the active object's event queue is becoming empty. Thus, the active object is removed from the ready list.
Describes the SMA (active object in UML).
Definition: rkhsma.h:748
void rkh_sma_setReady(RKH_SMA_T *const me)
Encapsulates the mechanism of signaling the thread waiting on the used native event queue...
void rkh_sma_block(RKH_SMA_T *const me)
Encapsulates the mechanism of blocking the native event queue.
Specifies the interface of the acive object (SMA state machine applications) manager.