Addition of an arbitary bitmask handling set of functions

New memory deallocation routines for the DCBS
This commit is contained in:
Mark Riddoch
2013-06-28 17:39:43 +02:00
parent 3e8b19733e
commit 8257eadf12
12 changed files with 456 additions and 72 deletions

View File

@ -19,10 +19,19 @@
*/
#include <pthread.h>
/**
* @file thread.h The gateway threading interface
*
* An encapsulation of the threading used by the gateway. This is designed to
* isolate the majority of the gateway code from th epthread library, enabling
* the gateway to be ported to a different threading package with the minimum
* of changes.
*/
#define THREAD pthread_t
#define THREAD_SHELF pthread_self
extern void *thread_start(void (*entry)());
extern void *thread_start(void (*entry)(void *), void *arg);
extern void thread_wait(void *thd);
#endif