mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
various gc change tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2c7647d9f1
commit
d8f2b6b369
3 changed files with 15 additions and 13 deletions
|
@ -24,21 +24,22 @@
|
|||
*/
|
||||
|
||||
#import "Foundation/NSGarbageCollector.h"
|
||||
#import "Foundation/NSLock.h"
|
||||
#import "Foundation/NSZone.h"
|
||||
|
||||
static NSGarbageCollector *collector = nil;
|
||||
static unsigned disabled = 0;
|
||||
|
||||
#if GS_WITH_GC
|
||||
|
||||
#include <gc.h>
|
||||
|
||||
#import "Foundation/NSLock.h"
|
||||
static NSLock *lock = nil;
|
||||
|
||||
#endif
|
||||
|
||||
@implementation NSGarbageCollector
|
||||
|
||||
static NSGarbageCollector *collector = nil;
|
||||
static NSLock *lock = nil;
|
||||
static unsigned disabled = 0;
|
||||
|
||||
+ (id) defaultCollector
|
||||
{
|
||||
return collector;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue