version 1.10.4.1, 2008/04/22 11:58:15
|
version 1.10.4.2, 2009/02/02 17:21:37
|
|
|
| |
void unlock(); | void unlock(); |
| |
#if defined(PEGASUS_OS_LINUX) || \ |
#if defined(PEGASUS_OS_LINUX) |
(defined(PEGASUS_OS_ZOS) && !(__TARGET_LIB__ < 0x41090000)) |
|
/** | /** |
This method must only be called after a fork() to reset the mutex | This method must only be called after a fork() to reset the mutex |
lock status in the new process. Any other use of this method is | lock status in the new process. Any other use of this method is |
|
|
// Use of this macro ensures that a static Mutex is not locked across a fork(). | // Use of this macro ensures that a static Mutex is not locked across a fork(). |
| |
#if !defined(PEGASUS_HAVE_PTHREADS) || \ | #if !defined(PEGASUS_HAVE_PTHREADS) || \ |
(defined(PEGASUS_OS_ZOS) && (__TARGET_LIB__ < 0x41090000)) || \ |
(defined(PEGASUS_OS_ZOS) || \ |
defined(PEGASUS_OS_VMS) | defined(PEGASUS_OS_VMS) |
| |
# define PEGASUS_FORK_SAFE_MUTEX(mutex) | # define PEGASUS_FORK_SAFE_MUTEX(mutex) |
| |
#elif defined(PEGASUS_OS_LINUX) || \ |
#elif defined(PEGASUS_OS_LINUX) |
(defined(PEGASUS_OS_ZOS) && !(__TARGET_LIB__ < 0x41090000)) |
|
| |
# define PEGASUS_FORK_SAFE_MUTEX(mutex) \ | # define PEGASUS_FORK_SAFE_MUTEX(mutex) \ |
class ForkSafeMutex ## mutex \ | class ForkSafeMutex ## mutex \ |