improve instance variable hiding

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29779 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-26 10:25:35 +00:00
parent f088bceae8
commit e43d625338
7 changed files with 108 additions and 105 deletions

View file

@ -27,8 +27,30 @@
*/
#import "common.h"
#define EXPOSE_NSOperation_IVARS 1
#define EXPOSE_NSOperationQueue_IVARS 1
#define GS_NSOperation_IVARS \
NSRecursiveLock *lock; \
NSConditionLock *cond; \
NSOperationQueuePriority priority; \
double threadPriority; \
BOOL cancelled; \
BOOL concurrent; \
BOOL executing; \
BOOL finished; \
BOOL ready; \
NSMutableArray *dependencies;
#define GS_NSOperationQueue_IVARS \
NSRecursiveLock *lock; \
NSConditionLock *cond; \
NSMutableArray *operations; \
NSMutableArray *waiting; \
NSString *name; \
BOOL suspended; \
NSInteger threads; \
NSInteger idle; \
NSInteger count;
#import "Foundation/NSOperation.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSAutoreleasePool.h"
@ -42,18 +64,7 @@
#define GSInternal NSOperationInternal
#include "GSInternal.h"
GS_BEGIN_INTERNAL(NSOperation)
NSRecursiveLock *lock;
NSConditionLock *cond;
NSOperationQueuePriority priority;
double threadPriority;
BOOL cancelled;
BOOL concurrent;
BOOL executing;
BOOL finished;
BOOL ready;
NSMutableArray *dependencies;
GS_END_INTERNAL(NSOperation)
GS_PRIVATE_INTERNAL(NSOperation)
static NSArray *empty = nil;
@ -459,17 +470,7 @@ static NSArray *empty = nil;
#undef GSInternal
#define GSInternal NSOperationQueueInternal
#include "GSInternal.h"
GS_BEGIN_INTERNAL(NSOperationQueue)
NSRecursiveLock *lock;
NSConditionLock *cond;
NSMutableArray *operations;
NSMutableArray *waiting;
NSString *name;
BOOL suspended;
NSInteger threads; // number of threads allocated
NSInteger idle; // threads waiting for an op to do
NSInteger count; // max executing operations
GS_END_INTERNAL(NSOperationQueue)
GS_PRIVATE_INTERNAL(NSOperationQueue)
@interface NSOperationQueue (Private)