use mutexes also to protect the pipe communication

wasn't threadsafe before.
This commit is contained in:
rofl0r
2012-11-07 21:11:03 +01:00
parent d0abc93c74
commit f570a66902
3 changed files with 30 additions and 18 deletions

View File

@ -1,3 +1,5 @@
#ifndef SHM_H
#define SHM_H
#include <unistd.h>
struct stringpool {
@ -8,7 +10,8 @@ struct stringpool {
void stringpool_init(struct stringpool* sp);
char* stringpool_add(struct stringpool *sp, char* s, size_t len);
#if 0
void *shm_realloc(void* old, size_t old_size, size_t new_size);
#endif
//RcB: DEP "shm.c"
#endif