acl  3.5.3.0
acl_pthread.h 文件参考
#include "../stdlib/acl_define.h"
#include <time.h>
#include "acl_sem.h"
+ acl_pthread.h 的引用(Include)关系图:
+ 此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  acl_pthread_t
 
struct  acl_pthread_attr_t
 
struct  acl_pthread_mutex_t
 
struct  acl_pthread_mutexattr_t
 
struct  acl_pthread_cond_t
 
struct  acl_pthread_condattr_t
 
struct  timespec
 

宏定义

#define ACL_MUTEX_MAXWAIT   (~(unsigned int)0)
 
#define ACL_PTHREAD_CREATE_DETACHED   1
 
#define ACL_PTHREAD_CREATE_JOINABLE   0
 
#define ACL_TLS_OUT_OF_INDEXES   0xffffffff
 
#define ACL_PTHREAD_KEYS_MAX   1024
 
#define ACL_PTHREAD_ONCE_INIT   0
 
#define acl_pthread_mutex_trylock   acl_pthread_mutex_lock
 
#define acl_pthread_cond_create   acl_thread_cond_create
 

类型定义

typedef struct acl_pthread_t acl_pthread_t
 
typedef struct acl_pthread_attr_t acl_pthread_attr_t
 
typedef struct acl_pthread_mutex_t acl_pthread_mutex_t
 
typedef struct acl_pthread_cond_t acl_pthread_cond_t
 
typedef struct acl_pthread_mutexattr_t acl_pthread_mutexattr_t
 
typedef struct acl_pthread_condattr_t acl_pthread_condattr_t
 
typedef int acl_pthread_key_t
 
typedef int acl_pthread_once_t
 

函数

ACL_API void acl_pthread_end (void)
 
ACL_API int acl_pthread_once (acl_pthread_once_t *once_control, void(*init_routine)(void))
 
ACL_API int acl_pthread_key_create (acl_pthread_key_t *key_ptr, void(*destructor)(void *))
 
ACL_API void * acl_pthread_getspecific (acl_pthread_key_t key)
 
ACL_API int acl_pthread_setspecific (acl_pthread_key_t key, void *value)
 
ACL_API int acl_pthread_attr_init (acl_pthread_attr_t *attr)
 
ACL_API int acl_pthread_attr_setstacksize (acl_pthread_attr_t *attr, size_t stacksize)
 
ACL_API int acl_pthread_attr_setdetachstate (acl_pthread_attr_t *attr, int detached)
 
ACL_API int acl_pthread_attr_destroy (acl_pthread_attr_t *thr_attr)
 
ACL_API unsigned long acl_pthread_self (void)
 
ACL_API int acl_pthread_create (acl_pthread_t *thread, acl_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 
ACL_API int acl_pthread_detach (acl_pthread_t thread)
 
ACL_API int acl_pthread_join (acl_pthread_t thread, void **thread_return)
 
ACL_API int acl_pthread_mutex_init (acl_pthread_mutex_t *mutex, const acl_pthread_mutexattr_t *mattr)
 
ACL_API int acl_pthread_mutex_destroy (acl_pthread_mutex_t *mutex)
 
ACL_API int acl_pthread_mutex_lock (acl_pthread_mutex_t *mutex)
 
ACL_API int acl_pthread_mutex_unlock (acl_pthread_mutex_t *mutex)
 
ACL_API int acl_pthread_cond_init (acl_pthread_cond_t *cond, acl_pthread_condattr_t *cond_attr)
 
ACL_API acl_pthread_cond_tacl_thread_cond_create (void)
 
ACL_API int acl_pthread_cond_destroy (acl_pthread_cond_t *cond)
 
ACL_API int acl_pthread_cond_signal (acl_pthread_cond_t *cond)
 
ACL_API int acl_pthread_cond_broadcast (acl_pthread_cond_t *cond)
 
ACL_API int acl_pthread_cond_timedwait (acl_pthread_cond_t *cond, acl_pthread_mutex_t *mutex, const struct timespec *timeout)
 
ACL_API int acl_pthread_cond_wait (acl_pthread_cond_t *cond, acl_pthread_mutex_t *mutex)
 
ACL_API int acl_thread_mutex_lock (acl_pthread_mutex_t *mutex)
 
ACL_API int acl_thread_mutex_unlock (acl_pthread_mutex_t *mutex)
 
ACL_API int acl_thread_mutex_nested (acl_pthread_mutex_t *mutex)
 
ACL_API int acl_pthread_atexit_add (void *arg, void(*free_callback)(void *))
 
ACL_API int acl_pthread_atexit_remove (void *arg, void(*free_callback)(void *))
 
ACL_API int acl_pthread_tls_set_max (int max)
 
ACL_API int acl_pthread_tls_get_max (void)
 
ACL_API void * acl_pthread_tls_get (acl_pthread_key_t *key_ptr)
 
ACL_API int acl_pthread_tls_set (acl_pthread_key_t key, void *ptr, void(*free_fn)(void *))
 
ACL_API int acl_pthread_tls_del (acl_pthread_key_t key)
 
ACL_API void acl_pthread_tls_once_get (acl_pthread_once_t *control_once)
 
ACL_API void acl_pthread_tls_once_set (acl_pthread_once_t control_once)
 
ACL_API acl_pthread_key_t acl_pthread_tls_key_get (void)
 
ACL_API void acl_pthread_tls_key_set (acl_pthread_key_t key)
 

宏定义说明

◆ ACL_MUTEX_MAXWAIT

#define ACL_MUTEX_MAXWAIT   (~(unsigned int)0)

在文件 acl_pthread.h10 行定义.

◆ acl_pthread_cond_create

#define acl_pthread_cond_create   acl_thread_cond_create

在文件 acl_pthread.h162 行定义.

◆ ACL_PTHREAD_CREATE_DETACHED

#define ACL_PTHREAD_CREATE_DETACHED   1

在文件 acl_pthread.h69 行定义.

◆ ACL_PTHREAD_CREATE_JOINABLE

#define ACL_PTHREAD_CREATE_JOINABLE   0

在文件 acl_pthread.h70 行定义.

◆ ACL_PTHREAD_KEYS_MAX

#define ACL_PTHREAD_KEYS_MAX   1024

在文件 acl_pthread.h72 行定义.

◆ acl_pthread_mutex_trylock

#define acl_pthread_mutex_trylock   acl_pthread_mutex_lock

在文件 acl_pthread.h155 行定义.

◆ ACL_PTHREAD_ONCE_INIT

#define ACL_PTHREAD_ONCE_INIT   0

在文件 acl_pthread.h73 行定义.

◆ ACL_TLS_OUT_OF_INDEXES

#define ACL_TLS_OUT_OF_INDEXES   0xffffffff

在文件 acl_pthread.h71 行定义.

类型定义说明

◆ acl_pthread_attr_t

在文件 acl_pthread.h76 行定义.

◆ acl_pthread_cond_t

在文件 acl_pthread.h78 行定义.

◆ acl_pthread_condattr_t

在文件 acl_pthread.h80 行定义.

◆ acl_pthread_key_t

typedef int acl_pthread_key_t

在文件 acl_pthread.h81 行定义.

◆ acl_pthread_mutex_t

在文件 acl_pthread.h77 行定义.

◆ acl_pthread_mutexattr_t

在文件 acl_pthread.h79 行定义.

◆ acl_pthread_once_t

typedef int acl_pthread_once_t

在文件 acl_pthread.h82 行定义.

◆ acl_pthread_t

typedef struct acl_pthread_t acl_pthread_t

在文件 acl_pthread.h75 行定义.

函数说明

◆ acl_pthread_atexit_add()

ACL_API int acl_pthread_atexit_add ( void *  arg,
void(*)(void *)  free_callback 
)

◆ acl_pthread_atexit_remove()

ACL_API int acl_pthread_atexit_remove ( void *  arg,
void(*)(void *)  free_callback 
)

◆ acl_pthread_attr_destroy()

ACL_API int acl_pthread_attr_destroy ( acl_pthread_attr_t thr_attr)

◆ acl_pthread_attr_init()

ACL_API int acl_pthread_attr_init ( acl_pthread_attr_t attr)

◆ acl_pthread_attr_setdetachstate()

ACL_API int acl_pthread_attr_setdetachstate ( acl_pthread_attr_t attr,
int  detached 
)

◆ acl_pthread_attr_setstacksize()

ACL_API int acl_pthread_attr_setstacksize ( acl_pthread_attr_t attr,
size_t  stacksize 
)

◆ acl_pthread_cond_broadcast()

ACL_API int acl_pthread_cond_broadcast ( acl_pthread_cond_t cond)

◆ acl_pthread_cond_destroy()

ACL_API int acl_pthread_cond_destroy ( acl_pthread_cond_t cond)

◆ acl_pthread_cond_init()

ACL_API int acl_pthread_cond_init ( acl_pthread_cond_t cond,
acl_pthread_condattr_t cond_attr 
)

◆ acl_pthread_cond_signal()

ACL_API int acl_pthread_cond_signal ( acl_pthread_cond_t cond)

◆ acl_pthread_cond_timedwait()

ACL_API int acl_pthread_cond_timedwait ( acl_pthread_cond_t cond,
acl_pthread_mutex_t mutex,
const struct timespec timeout 
)

◆ acl_pthread_cond_wait()

ACL_API int acl_pthread_cond_wait ( acl_pthread_cond_t cond,
acl_pthread_mutex_t mutex 
)

◆ acl_pthread_create()

ACL_API int acl_pthread_create ( acl_pthread_t thread,
acl_pthread_attr_t attr,
void *(*)(void *)  start_routine,
void *  arg 
)

◆ acl_pthread_detach()

ACL_API int acl_pthread_detach ( acl_pthread_t  thread)

◆ acl_pthread_end()

ACL_API void acl_pthread_end ( void  )

◆ acl_pthread_getspecific()

ACL_API void* acl_pthread_getspecific ( acl_pthread_key_t  key)

◆ acl_pthread_join()

ACL_API int acl_pthread_join ( acl_pthread_t  thread,
void **  thread_return 
)

◆ acl_pthread_key_create()

ACL_API int acl_pthread_key_create ( acl_pthread_key_t key_ptr,
void(*)(void *)  destructor 
)

◆ acl_pthread_mutex_destroy()

ACL_API int acl_pthread_mutex_destroy ( acl_pthread_mutex_t mutex)

◆ acl_pthread_mutex_init()

ACL_API int acl_pthread_mutex_init ( acl_pthread_mutex_t mutex,
const acl_pthread_mutexattr_t mattr 
)

◆ acl_pthread_mutex_lock()

ACL_API int acl_pthread_mutex_lock ( acl_pthread_mutex_t mutex)

◆ acl_pthread_mutex_unlock()

ACL_API int acl_pthread_mutex_unlock ( acl_pthread_mutex_t mutex)

◆ acl_pthread_once()

ACL_API int acl_pthread_once ( acl_pthread_once_t once_control,
void(*)(void)  init_routine 
)

◆ acl_pthread_self()

ACL_API unsigned long acl_pthread_self ( void  )

◆ acl_pthread_setspecific()

ACL_API int acl_pthread_setspecific ( acl_pthread_key_t  key,
void *  value 
)

◆ acl_pthread_tls_del()

ACL_API int acl_pthread_tls_del ( acl_pthread_key_t  key)

◆ acl_pthread_tls_get()

ACL_API void* acl_pthread_tls_get ( acl_pthread_key_t key_ptr)

◆ acl_pthread_tls_get_max()

ACL_API int acl_pthread_tls_get_max ( void  )

◆ acl_pthread_tls_key_get()

ACL_API acl_pthread_key_t acl_pthread_tls_key_get ( void  )

◆ acl_pthread_tls_key_set()

ACL_API void acl_pthread_tls_key_set ( acl_pthread_key_t  key)

◆ acl_pthread_tls_once_get()

ACL_API void acl_pthread_tls_once_get ( acl_pthread_once_t control_once)

◆ acl_pthread_tls_once_set()

ACL_API void acl_pthread_tls_once_set ( acl_pthread_once_t  control_once)

◆ acl_pthread_tls_set()

ACL_API int acl_pthread_tls_set ( acl_pthread_key_t  key,
void *  ptr,
void(*)(void *)  free_fn 
)

◆ acl_pthread_tls_set_max()

ACL_API int acl_pthread_tls_set_max ( int  max)

◆ acl_thread_cond_create()

ACL_API acl_pthread_cond_t* acl_thread_cond_create ( void  )

◆ acl_thread_mutex_lock()

ACL_API int acl_thread_mutex_lock ( acl_pthread_mutex_t mutex)

◆ acl_thread_mutex_nested()

ACL_API int acl_thread_mutex_nested ( acl_pthread_mutex_t mutex)

◆ acl_thread_mutex_unlock()

ACL_API int acl_thread_mutex_unlock ( acl_pthread_mutex_t mutex)