mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* Headers/Foundation/NSLock.h: Make types of _mutex and
_condition opaic to avoid including private thr-mach.h header. * Headers/Foundation/NSThread.h: Do not include private thr-mach.h header. * Source/thr-mach.h: Moved here from Headers/Additions/GNUstepBase/thr-mach.h. * Source/NSLock.m: Include private thr-mach.h header for apple-gnu-gnu. Added defines for typing opaic instance variables and use them in various methods. * Source/NSThread.m: Include private thr-mach.h header for apple-gnu-gnu. * Source/thr-mach.m: Include private thr-mach.h header from new location. * Source/thr-pthread.m: Ditto. * Source/GNUmakefile: Do not install private thr-mach.h header. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18607 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3005923c0
commit
1767ef985f
9 changed files with 70 additions and 53 deletions
|
@ -32,9 +32,6 @@
|
|||
#define _GNUstep_H_NSLock
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
#ifdef NeXT_RUNTIME
|
||||
#include <GNUstepBase/thr-mach.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* NSLocking protocol
|
||||
|
@ -53,7 +50,7 @@
|
|||
@interface NSLock : NSObject <NSLocking, GCFinalization>
|
||||
{
|
||||
@private
|
||||
objc_mutex_t _mutex;
|
||||
void *_mutex;
|
||||
}
|
||||
|
||||
- (BOOL) tryLock;
|
||||
|
@ -71,9 +68,9 @@
|
|||
@interface NSConditionLock : NSObject <NSLocking, GCFinalization>
|
||||
{
|
||||
@private
|
||||
objc_condition_t _condition;
|
||||
objc_mutex_t _mutex;
|
||||
int _condition_value;
|
||||
void *_condition;
|
||||
void *_mutex;
|
||||
int _condition_value;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -117,7 +114,7 @@
|
|||
@interface NSRecursiveLock : NSObject <NSLocking, GCFinalization>
|
||||
{
|
||||
@private
|
||||
objc_mutex_t _mutex;
|
||||
void *_mutex;
|
||||
}
|
||||
|
||||
- (BOOL) tryLock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue