TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

bb_simple.h

Go to the documentation of this file.
00001 
00037 #ifndef _BB_SIMPLE_H_
00038 #define _BB_SIMPLE_H_
00039 
00040 #include <stdio.h>
00041 #include <pthread.h>
00042 #include <bb_utils.h>
00043 #include <bb_core.h>
00044 
00045 pthread_cond_t  bb_simple_go_condvar;
00046 pthread_mutex_t bb_simple_go_mutex;
00047 pthread_cond_t  bb_simple_stockage_condvar;
00048 pthread_mutex_t bb_simple_stockage_mutex;
00049 
00050 #define BB_SIMPLE_SYNCHRO_THREAD  1
00051 #define BB_SIMPLE_SYNCHRO_PROCESS 2
00052 
00057 #define BB_SIMPLE_MSGID_SYNCHRO_COPY   1
00058 
00065 #define BB_SIMPLE_MSGID_SYNCHRO_COPY_ACK  2
00066 
00104 void* bb_simple_publish(S_BB_T* bb_simple,
00105                         const char* var_name, 
00106                         const char* module_name,
00107                         const int module_instance,
00108                         E_BB_TYPE_T bb_type,
00109                         int type_size,
00110                         int dimension);
00128 void* bb_simple_subscribe(S_BB_T* bb_simple,
00129                           const char* var_name,
00130                           const char* module_name,
00131                           const int module_instance,
00132                           E_BB_TYPE_T*  bb_type,
00133                           int* type_size,
00134                           int* dimension);
00135 
00144 int32_t bb_simple_synchro_config(int synchro_type);
00145 
00153 int32_t bb_simple_synchro_go(S_BB_T* bb_simple,int msg_type);
00154 
00163 int32_t bb_simple_synchro_wait(S_BB_T* bb_simple,int type_msg);
00164 
00171 int32_t bb_simple_synchro_verify(S_BB_T* bb_simple);
00172 
00180 int32_t bb_simple_thread_synchro_go(int type_msg);
00181 
00189 int32_t bb_simple_thread_synchro_wait(int type_msg);
00190 #endif /* _BB_SIMPLE_H_ */
Framework Home Page.

Beware !! TSP wave is coming...