version 1.19, 2009/09/03 10:23:00
|
version 1.20, 2010/04/09 08:23:14
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
namespace |
|
{ |
|
//mutex used for synchronising threads calling _get_stack_multiplier |
|
MutexType _multiplier_mutex = PEGASUS_MUTEX_INITIALIZER; |
|
} |
|
|
void Threads::sleep(int msec) | void Threads::sleep(int msec) |
{ | { |
#if defined(PEGASUS_HAVE_NANOSLEEP) | #if defined(PEGASUS_HAVE_NANOSLEEP) |
|
|
#if defined(PEGASUS_OS_VMS) | #if defined(PEGASUS_OS_VMS) |
| |
static int _multiplier = 0; | static int _multiplier = 0; |
static MutexType _multiplier_mutex = PEGASUS_MUTEX_INITIALIZER; |
|
| |
// | // |
// This code uses a, 'hidden' (non-documented), VMS only, logical | // This code uses a, 'hidden' (non-documented), VMS only, logical |