]> rtime.felk.cvut.cz Git - frescor/fna.git/blob - src_frescan/frescan_servers_replenishments.h
net
[frescor/fna.git] / src_frescan / frescan_servers_replenishments.h
1 /*!
2  * @file frescan_servers_replenishments.h
3  *
4  * @brief the replenishment data and thread for the servers
5  *
6  * @version 0.01
7  *
8  * @date 12-Mar-2008
9  *
10  * @author
11  *      Daniel Sangorrin
12  *
13  * @comments
14  *
15  * This module contains the thread that waits for server's replenishment
16  * timer signals and perform the necessary replenishments.
17  *
18  * @license
19  *
20  * See MaRTE OS license
21  *
22  */
23
24 #ifndef _MARTE_FRESCAN_SERVERS_REPLENISHMENTS_H_
25 #define _MARTE_FRESCAN_SERVERS_REPLENISHMENTS_H_
26
27 #include "frescan.h" // frescan_network_t
28
29 /**
30  * frescan_replenishments_init - init the replenishment structures and thread
31  *
32  * @net: the network instance
33  *
34  * Initialize the repl_op pool, set the mask for the timer signals and create
35  * the thread that will await for those signals and replenish the appropiate
36  * sporadic server.
37  *
38  * NOTE: it must be called from the MAIN because it sets the signal mask
39  */
40
41 extern int frescan_replenishments_init(frescan_network_t net);
42
43 /**
44  * frescan_replenishment_program - set a replenishment operation
45  *
46  * @net: the network instance
47  * @ss: the server
48  */
49
50 extern int frescan_replenishment_program(frescan_network_t net,
51                                          frescan_ss_t ss);
52
53 #endif // _MARTE_FRESCAN_SERVERS_REPLENISHMENTS_H_