version 1.1.2.3, 2001/08/07 22:24:29
|
version 1.1.2.4, 2001/08/14 20:10:57
|
|
|
| |
#include <process.h> | #include <process.h> |
#include <winbase.h> | #include <winbase.h> |
|
#include <stdlib.h> |
#include <sys/types.h> | #include <sys/types.h> |
#include <sys/timeb.h> | #include <sys/timeb.h> |
#include <errno.h> | #include <errno.h> |
|
|
void * thatt; | void * thatt; |
} PEGASUS_THREAD_HANDLE ; | } PEGASUS_THREAD_HANDLE ; |
| |
|
|
//----------------------------------------------------------------- | //----------------------------------------------------------------- |
/// Conditionals to support native or generic Conditional Semaphore |
/// Conditionals to support native conditional semaphore object |
//----------------------------------------------------------------- | //----------------------------------------------------------------- |
#if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
|
#define PEGASUS_CONDITIONAL_NATIVE = 1 |
|
| |
typedef HANDLE PEGASUS_COND_TYPE; |
#if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
| |
typedef struct { |
// windows uses the generic conditional semaphore defined in |
PEGASUS_COND_TYPE cond; |
// IPC.ccp |
PEGASUS_THREAD_TYPE owner; |
|
} PEGASUS_COND_HANDLE; |
|
| |
#endif // platform conditional type | #endif // platform conditional type |
| |
|
|
/// Conditionals to support native or generic atomic variables | /// Conditionals to support native or generic atomic variables |
//----------------------------------------------------------------- | //----------------------------------------------------------------- |
| |
// linux offers a built-in integer type for atomic access |
|
// other unix platforms HPUX, AIX, may have different types |
|
// implementors should use the native type for faster operations |
|
|
|
#if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) | #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
#define PEGASUS_ATOMIC_INT_NATIVE = 1 | #define PEGASUS_ATOMIC_INT_NATIVE = 1 |
| |