4coder/platform_all/4ed_shared_thread_constants.h

32 lines
755 B
C
Raw Normal View History

2017-07-18 20:17:57 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 17.07.2017
*
* 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