mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
74a7312255
commit
4667c84855
18 changed files with 808 additions and 580 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue