Port baseadd to MacOSX

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15199 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-12-03 02:50:07 +00:00
parent 74a7312255
commit 4667c84855
18 changed files with 808 additions and 580 deletions

View file

@ -33,6 +33,7 @@
#include <Foundation/NSThread.h>
#include <gnustep/base/GCObject.h>
#include "GSCompatibility.h"
/*
* The head of a linked list of all garbage collecting objects is a
@ -60,7 +61,14 @@
static GCObject *allObjects = nil;
static BOOL isCollecting = NO;
#ifdef NeXT_RUNTIME
static void *allocationLock = NULL;
#define objc_mutex_allocate() NULL
#define objc_mutex_lock(lock)
#define objc_mutex_unlock(lock)
#else
static objc_mutex_t allocationLock = NULL;
#endif
+ (void) _becomeMultiThreaded: (NSNotification *)aNotification
{