Skip to content

Commit

Permalink
Update Multiprocessing.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 authored Jan 13, 2024
1 parent 1aa1d3c commit c31e98f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ enum {
};

typedef void* MPCriticalRegionID;
typedef void* MPSemaphoreID;
typedef ItemCount MPSemaphoreCount;

Boolean _MPIsFullyInitialized();
OSStatus MPDelayUntil(AbsoluteTime* time);
Expand All @@ -24,6 +26,10 @@ OSStatus MPDeleteCriticalRegion(MPCriticalRegionID criticalRegion);
OSStatus MPEnterCriticalRegion(MPCriticalRegionID criticalRegion, Duration timeout);
OSStatus MPExitCriticalRegion(MPCriticalRegionID criticalRegion);

OSStatus MPCreateSemaphore(MPSemaphoreCount maximumValue, MPSemaphoreCount initialValue, MPSemaphoreID *semaphore);
OSStatus MPDeleteSemaphore(MPSemaphoreID semaphore);
OSStatus MPSignalSemaphore(MPSemaphoreID semaphore);
OSStatus MPWaitOnSemaphore(MPSemaphoreID semaphore, Duration timeout);
// other functions are missing...

#ifdef __cplusplus
Expand Down

0 comments on commit c31e98f

Please sign in to comment.