2017-07-18 20:17:57 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
2017-07-18 20:51:44 +00:00
|
|
|
* 18.07.2017
|
2017-07-18 20:17:57 +00:00
|
|
|
*
|
|
|
|
* Cross platform threading constants
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FRED_SHARED_THREADING_CONSTANTS_H)
|
|
|
|
#define FRED_SHARED_THREADING_CONSTANTS_H
|
|
|
|
|
|
|
|
#define CORE_COUNT 8
|
|
|
|
|
|
|
|
#define THREAD_TYPE_SIZE 32
|
|
|
|
#define MUTEX_TYPE_SIZE 40
|
2017-07-18 20:22:00 +00:00
|
|
|
#define CONDITION_VARIABLE_TYPE_SIZE 48
|
2017-07-18 20:17:57 +00:00
|
|
|
#define SEMAPHORE_TYPE_SIZE 32
|
|
|
|
|
|
|
|
#define AssertThreadSizes() \
|
|
|
|
Assert( sizeof(Thread) == THREAD_TYPE_SIZE ); \
|
|
|
|
Assert( sizeof(Mutex) == MUTEX_TYPE_SIZE ); \
|
|
|
|
Assert(sizeof(Condition_Variable) == CONDITION_VARIABLE_TYPE_SIZE); \
|
|
|
|
Assert( sizeof(Semaphore) == SEMAPHORE_TYPE_SIZE )
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|