thread_mutex.proc_mutex refresh define

This commit is contained in:
2019-12-10 15:05:56 +08:00
parent 1bfb503e13
commit 2d9765839e
5 changed files with 10 additions and 16 deletions

View File

@@ -62,8 +62,6 @@ typedef void * ExternalModulePointer;
#define pi_get dlsym
#define pi_close dlclose
typedef pthread_mutex_t hgl_thread_mutex;
#define hgl_stat64 stat
#define hgl_open64 open
#define hgl_lseek64 lseek

View File

@@ -72,7 +72,7 @@ using ExternalModulePointer =HMODULE;
#define hgl_read64 _read
#define hgl_write64 _write
using hgl_thread_mutex =CRITICAL_SECTION;
using thread_mutex_ptr =CRITICAL_SECTION;
using thread_ptr =HANDLE;
using rwlock_ptr =SRWLOCK;
using semaphore_ptr =HANDLE;
@@ -80,5 +80,7 @@ using conv_var_ptr =CONDITION_VARIABLE;
#define THREAD_FUNC DWORD WINAPI
#define HGL_THREAD_DETACH_SELF
using proc_mutex_ptr =HANDLE;
//--------------------------------------------------------------------------------------------------
#endif//HGL_OS_WIN_INCLUDE

View File

@@ -9,7 +9,7 @@
namespace hgl
{
using hgl_thread_mutex =pthread_mutex_t;
using thread_mutex_ptr =pthread_mutex_t;
using thread_ptr =pthread_t;
using rwlock_ptr =pthread_rwlock_t *;
@@ -24,5 +24,7 @@ namespace hgl
#define THREAD_FUNC void *
#define HGL_THREAD_DETACH_SELF pthread_detach(pthread_self());
using proc_mutex_ptr =sem_t *;
}//namespace hgl
#endif//HGL_POSIX_THREAD_INCLUDE