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;
|
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (id)init;
|
|
|
|
- (void)signal;
|
|
|
|
- (void)timedWait:(int)microseconds;
|
|
|
|
- (void)wait;
|
|
|
|
- (void)waitIndefinitely;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
|
|
|
@end
|