This magically fixes the stupid header maps that were pulling the system semaphore.h into Swift projects, when they shouldn't have been doing that in the first place. This is the same reason that the FLAC library has its assert.h renamed to FLAC_assert.h. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
22 lines
353 B
Objective-C
22 lines
353 B
Objective-C
//
|
|
// CogSemaphore.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;
|
|
- (void)timedWait:(int)microseconds;
|
|
- (void)wait;
|
|
- (void)waitIndefinitely;
|
|
|
|
@end
|