2 * @file frescan_servers_replenishments.h
4 * @brief the replenishment data and thread for the servers
15 * This module contains the thread that waits for server's replenishment
16 * timer signals and perform the necessary replenishments.
20 * See MaRTE OS license
24 #ifndef _MARTE_FRESCAN_SERVERS_REPLENISHMENTS_H_
25 #define _MARTE_FRESCAN_SERVERS_REPLENISHMENTS_H_
27 #include "frescan.h" // frescan_network_t
30 * frescan_replenishments_init - init the replenishment structures and thread
32 * @net: the network instance
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
38 * NOTE: it must be called from the MAIN because it sets the signal mask
41 extern int frescan_replenishments_init(frescan_network_t net);
44 * frescan_replenishment_program - set a replenishment operation
46 * @net: the network instance
50 extern int frescan_replenishment_program(frescan_network_t net,
53 #endif // _MARTE_FRESCAN_SERVERS_REPLENISHMENTS_H_