cog/Utils/Semaphore.h

22 lines
315 B
C
Raw Normal View History

2005-09-07 22:33:16 +00:00
//
// Semaphore.h
// Cog
//
// Created by Vincent Spader on 8/2/05.
// Copyright 2005 Vincent Spader. All rights reserved.
2005-09-07 22:33:16 +00:00
//
#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