EDLightWeightLock


Declared In:
EDLightWeightLock.h



Defined Types

Synopsis:

typedef pthread_mutex_t EDLightWeightLock;

Synopsis:

typedef struct objc_mutex EDLightWeightLock;

Synopsis:

typedef struct mutex EDLightWeightLock;

Description:

Datatype for a light-weight lock, different implementations are used on the supported platforms. In GNUStep builds we use the runtime lock wrapper, on Mac OS X and Solaris pthreads, and mach mutexes on the rest. <<What about Windows?!>>


Static Inline Functions

Synopsis:

EDLightWeightLock *EDLWLCreate()
void EDLWLDispose(EDLightWeightLock *mutex)
void EDLWLLock(EDLightWeightLock *mutex)
void EDLWLUnlock(EDLightWeightLock *mutex)

Synopsis:

EDLightWeightLock *EDLWLCreate()
void EDLWLDispose(EDLightWeightLock *mutex)
void EDLWLLock(EDLightWeightLock *mutex)
void EDLWLUnlock(EDLightWeightLock *mutex)

Synopsis:

EDLightWeightLock *EDLWLCreate()
void EDLWLDispose(EDLightWeightLock *mutex)
void EDLWLLock(EDLightWeightLock *mutex)
void EDLWLUnlock(EDLightWeightLock *mutex)

Description:

Under certain circumstances even the low overhead of NSLocks is too much and direct access to the platform's locks is required. These four functions allocate, initialise and return a lock, dispose of it and allow to lock and unlock it.


Version 2.0 Copyright ©2002. All Rights Reserved.