first commit of the T - review this commit, many things should

probably not be here.
This commit is contained in:
Cedric Roux
2016-04-10 17:01:22 +02:00
parent 9185c693bc
commit f9d740eee6
21 changed files with 1950 additions and 25 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef _T_defs_H_
#define _T_defs_H_
/* maximum size of a message - increase if needed */
#define T_BUFFER_MAX (1024*64)
/* size of the local cache for messages (must be pow(2,something)) */
#define T_CACHE_SIZE (8192 * 2)
typedef struct {
volatile int busy;
char buffer[T_BUFFER_MAX];
int length;
} T_cache_t;
#define T_SHM_FILENAME "/T_shm_segment"
#endif /* _T_defs_H_ */