version 1.2, 2003/10/22 14:26:03
|
version 1.3, 2003/11/18 00:23:53
|
|
|
/// Conditionals to support native or generic Conditional Semaphore | /// Conditionals to support native or generic Conditional Semaphore |
//----------------------------------------------------------------- | //----------------------------------------------------------------- |
| |
#define PEGASUS_CONDITIONAL_NATIVE 1 |
#define PEGASUS_CONDITIONAL_NATIVE |
| |
typedef pthread_cond_t PEGASUS_COND_TYPE; | typedef pthread_cond_t PEGASUS_COND_TYPE; |
| |
|
|
// other unix platforms HPUX, AIX, may have different types | // other unix platforms HPUX, AIX, may have different types |
// implementors should use the native type for faster operations | // implementors should use the native type for faster operations |
| |
// #define PEGASUS_ATOMIC_INT_NATIVE = 1 |
// #define PEGASUS_ATOMIC_INT_NATIVE |
| |
// typedef sig_atomic_t PEGASUS_ATOMIC_TYPE ; | // typedef sig_atomic_t PEGASUS_ATOMIC_TYPE ; |
| |
|
|
//----------------------------------------------------------------- | //----------------------------------------------------------------- |
| |
#ifndef SUNOS_5_6 | #ifndef SUNOS_5_6 |
#define PEGASUS_READWRITE_NATIVE 1 |
#define PEGASUS_READWRITE_NATIVE |
| |
typedef struct { | typedef struct { |
pthread_rwlock_t rwlock; | pthread_rwlock_t rwlock; |