mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-11 11:18:40 +00:00
29 lines
644 B
C
29 lines
644 B
C
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef TOS_PLATFORM_WIN32_THREADING_THREAD_DEFINES_H
|
|
#define TOS_PLATFORM_WIN32_THREADING_THREAD_DEFINES_H
|
|
|
|
#include <stdio.h>
|
|
#include <windows.h>
|
|
|
|
#define THREAD_RETURN DWORD WINAPI
|
|
typedef DWORD (WINAPI *ThreadJobFunc)(void*);
|
|
typedef CRITICAL_SECTION pthread_mutex_t;
|
|
typedef void pthread_mutexattr_t;
|
|
typedef void pthread_condattr_t;
|
|
typedef void pthread_rwlockattr_t;
|
|
typedef HANDLE pthread_t;
|
|
typedef CONDITION_VARIABLE pthread_cond_t;
|
|
|
|
struct pthread_rwlock_t {
|
|
SRWLOCK lock;
|
|
bool exclusive;
|
|
};
|
|
|
|
#endif |