30 #ifndef __JackMessageBuffer__
31 #define __JackMessageBuffer__
33 #include "JackPlatformPlug.h"
34 #include "JackMutex.h"
35 #include "JackAtomic.h"
41 #define MB_BUFFERS 128
42 #define MB_NEXT(index) ((index+1) & (MB_BUFFERS-1))
43 #define MB_BUFFERSIZE 256
48 char message[MB_BUFFERSIZE];
60 volatile JackThreadInitCallback fInit;
65 volatile unsigned int fInBuffer;
66 volatile unsigned int fOutBuffer;
84 bool static Destroy();
86 void AddMessage(
int level,
const char *message);
87 int SetInitCallback(JackThreadInitCallback callback,
void *arg);
97 void JackMessageBufferAdd(
int level,
const char *message);
A synchronization primitive built using a condition variable.
The base class for runnable objects, that have an Init and Execute method to be called in a threa...
Message buffer to be used from RT threads.
Darwin threads. Real-time threads are actually "time constraint" threads.