2007-02-24 20:36:27 +00:00
|
|
|
//
|
|
|
|
// Semaphore.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 8/2/05.
|
|
|
|
// Copyright 2005 Vincent Spader. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <mach/mach.h>
|
|
|
|
|
|
|
|
@interface Semaphore : NSObject {
|
|
|
|
semaphore_t semaphore;
|
|
|
|
}
|
|
|
|
|
|
|
|
-(id)init;
|
|
|
|
-(void)signal;
|
2022-01-15 06:43:46 +00:00
|
|
|
-(void)timedWait:(int)microseconds;
|
2007-02-24 20:36:27 +00:00
|
|
|
-(void)wait;
|
2013-10-12 20:52:58 +00:00
|
|
|
-(void)waitIndefinitely;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
|
|
|
@end
|