/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/Platform/Posix/ThreadingDeclarations_Posix.h
29 строк
603 B
Jan Krassnigg
Further refactor of platform specific code (#1415)
23 окт 2024, 21:36
Не верифицирован
23 окт 2024, 21:36
8b313ab
Код
Авторство
О чём код?
#pragma once // Deactivate Doxygen document generation for the following block. /// \cond #include <pthread.h> #include <semaphore.h> using ezThreadHandle = pthread_t; using ezThreadID = pthread_t; using ezMutexHandle = pthread_mutex_t; using ezOSThreadEntryPoint = void* (*)(void* pThreadParameter); struct ezSemaphoreHandle { sem_t* m_pNamedOrUnnamed = nullptr; sem_t* m_pNamed = nullptr; sem_t m_Unnamed; }; #define EZ_THREAD_CLASS_ENTRY_POINT void* ezThreadClassEntryPoint(void* pThreadParameter); struct ezConditionVariableData { pthread_cond_t m_ConditionVariable; }; /// \endcond