|
@@ -139,6 +139,7 @@ Type
|
|
|
function pthread_mutex_init(__mutex:ppthread_mutex_t; __mutex_attr:ppthread_mutexattr_t):longint;cdecl;external;
|
|
|
function pthread_mutex_destroy(__mutex:ppthread_mutex_t):longint;cdecl;external;
|
|
|
function pthread_mutex_trylock(__mutex:ppthread_mutex_t):longint;cdecl;external;
|
|
|
+ function pthread_mutex_timedlock(__mutex:ppthread_mutex_t; __abs_timeout:ptimespec):longint;cdecl;external;
|
|
|
function pthread_mutex_lock(__mutex:ppthread_mutex_t):longint;cdecl;external;
|
|
|
function pthread_mutex_unlock(__mutex:ppthread_mutex_t):longint;cdecl;external;
|
|
|
function pthread_mutexattr_init(__attr:ppthread_mutexattr_t):longint;cdecl;external;
|
|
@@ -221,6 +222,7 @@ Var
|
|
|
pthread_mutex_init : Function(__mutex:ppthread_mutex_t; __mutex_attr:ppthread_mutexattr_t):longint;cdecl;
|
|
|
pthread_mutex_destroy : Function(__mutex:ppthread_mutex_t):longint;cdecl;
|
|
|
pthread_mutex_trylock : Function(__mutex:ppthread_mutex_t):longint;cdecl;
|
|
|
+ pthread_mutex_timedlock : Function(__mutex:ppthread_mutex_t; __abs_timeout:ptimespec):longint;cdecl;
|
|
|
pthread_mutex_lock : Function(__mutex:ppthread_mutex_t):longint;cdecl;
|
|
|
pthread_mutex_unlock : Function(__mutex:ppthread_mutex_t):longint;cdecl;
|
|
|
pthread_mutexattr_init : Function(__attr:ppthread_mutexattr_t):longint;cdecl;
|
|
@@ -316,6 +318,7 @@ begin
|
|
|
Pointer(pthread_mutex_init) := dlsym(PthreadDLL,'pthread_mutex_init');
|
|
|
Pointer(pthread_mutex_destroy) := dlsym(PthreadDLL,'pthread_mutex_destroy');
|
|
|
Pointer(pthread_mutex_trylock) := dlsym(PthreadDLL,'pthread_mutex_trylock');
|
|
|
+ Pointer(pthread_mutex_timedlock) := dlsym(PthreadDLL,'pthread_mutex_timedlock');
|
|
|
Pointer(pthread_mutex_lock) := dlsym(PthreadDLL,'pthread_mutex_lock');
|
|
|
Pointer(pthread_mutex_unlock) := dlsym(PthreadDLL,'pthread_mutex_unlock');
|
|
|
Pointer(pthread_mutexattr_init) := dlsym(PthreadDLL,'pthread_mutexattr_init');
|