cog/Utils/Semaphore.h

22 lines
321 B
Objective-C

//
// Semaphore.h
// Cog
//
// Created by Zaphod Beeblebrox on 8/2/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <mach/mach.h>
@interface Semaphore : NSObject {
semaphore_t semaphore;
}
-(id)init;
-(void)signal;
-(void)timedWait:(int)seconds;
-(void)wait;
@end