20 #ifndef __JackMachSemaphore__    21 #define __JackMachSemaphore__    23 #include "JackCompilerDeps.h"    24 #include "JackSynchro.h"    25 #include <mach/mach.h>    26 #include <servers/bootstrap.h>    27 #include <mach/semaphore.h>    41         semaphore_t fSemaphore;
    42         mach_port_t fBootPort;
    46         void BuildName(
const char* name, 
const char* server_name, 
char* res, 
int size);
    56         bool TimedWait(
long usec);
    58         bool Allocate(
const char* name, 
const char* server_name, 
int value);
    59         bool Connect(
const char* name, 
const char* server_name);
    60         bool ConnectInput(
const char* name, 
const char* server_name);
    61         bool ConnectOutput(
const char* name, 
const char* server_name);
 
Inter process synchronization using using Mach semaphore. 
Inter process synchronization using POSIX semaphore. 
An inter process synchronization primitive.