Tizen RT Libs&Environment
v1.1 D4
|
Provides APIs for Pthreads. More...
![]() |
Data Structures | |
struct | pthread_region_s |
Structure of pthread region configuration. More... | |
struct | pthread_attr_s |
Structure of pthread attr configuration. More... | |
struct | pthread_cond_s |
Structure of pthread condition configuration. More... | |
struct | pthread_mutexattr_s |
Structure of pthread mutex attr configuration. More... | |
struct | pthread_mutex_s |
Structure of pthread mutex configuration. More... | |
struct | pthread_barrierattr_s |
Structure of pthread barrier attr configuration. More... | |
struct | pthread_barrier_s |
Structure of pthread barrier configuration. More... | |
struct | pthread_rwlock_s |
Structure of pthread rwlock. More... | |
Macros | |
#define | pthread_setname_np(thread, name) prctl((int)PR_SET_NAME, (char*)name, (int)thread) |
sets the name of pthread More... | |
#define | pthread_getname_np(thread, name) prctl((int)PR_GET_NAME, (char*)name, (int)thread) |
gets the name of pthread More... | |
#define | pthread_self() ((pthread_t)getpid()) |
get the calling thread ID More... | |
#define | pthread_equal(t1, t2) ((t1) == (t2)) |
compare thread IDs More... | |
Functions | |
int | pthread_create (FAR pthread_t *thread, FAR const pthread_attr_t *attr, pthread_startroutine_t startroutine, pthread_addr_t arg) |
thread creation More... | |
int | pthread_detach (pthread_t thread) |
detach a thread More... | |
void | pthread_exit (pthread_addr_t value) noreturn_function |
thread termination More... | |
int | pthread_cancel (pthread_t thread) |
cancel execution of a thread More... | |
int | pthread_setcancelstate (int state, FAR int *oldstate) |
set cancelability state More... | |
int | pthread_setcanceltype (int type, FAR int *oldtype) |
set cancelability state More... | |
void | pthread_testcancel (void) |
set cancelability state More... | |
int | pthread_join (pthread_t thread, FAR pthread_addr_t *value) |
wait for thread termination More... | |
void | pthread_yield (void) |
yield the processor More... | |
int | pthread_getschedparam (pthread_t thread, FAR int *policy, FAR struct sched_param *param) |
dynamic thread scheduling parameters access More... | |
int | pthread_setschedparam (pthread_t thread, int policy, FAR const struct sched_param *param) |
dynamic thread scheduling parameters access More... | |
int | pthread_setschedprio (pthread_t thread, int prio) |
dynamic thread scheduling parameters access More... | |
int | pthread_key_create (FAR pthread_key_t *key, CODE void(*destructor)(FAR void *)) |
thread-specific data key creation More... | |
int | pthread_setspecific (pthread_key_t key, FAR const void *value) |
thread-specific data management More... | |
FAR void * | pthread_getspecific (pthread_key_t key) |
thread-specific data management More... | |
int | pthread_mutex_init (FAR pthread_mutex_t *mutex, FAR const pthread_mutexattr_t *attr) |
initialize a mutex More... | |
int | pthread_mutex_destroy (FAR pthread_mutex_t *mutex) |
destroy a mutex More... | |
int | pthread_mutex_lock (FAR pthread_mutex_t *mutex) |
lock a mutex More... | |
int | pthread_mutex_trylock (FAR pthread_mutex_t *mutex) |
try to lock a mutex More... | |
int | pthread_mutex_unlock (FAR pthread_mutex_t *mutex) |
unlock a mutex More... | |
int | pthread_cond_init (FAR pthread_cond_t *cond, FAR const pthread_condattr_t *attr) |
initialize condition variables More... | |
int | pthread_cond_destroy (FAR pthread_cond_t *cond) |
destroy condition variables More... | |
int | pthread_cond_broadcast (FAR pthread_cond_t *cond) |
broadcast a condition More... | |
int | pthread_cond_signal (FAR pthread_cond_t *cond) |
signal a condition More... | |
int | pthread_cond_wait (FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex) |
wait on a condition More... | |
int | pthread_cond_timedwait (FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex, FAR const struct timespec *abstime) |
wait on a condition More... | |
int | pthread_barrier_destroy (FAR pthread_barrier_t *barrier) |
destroy a barrier object More... | |
int | pthread_barrier_init (FAR pthread_barrier_t *barrier, FAR const pthread_barrierattr_t *attr, unsigned int count) |
initialize a barrier object More... | |
int | pthread_barrier_wait (FAR pthread_barrier_t *barrier) |
synchronize at a barrier More... | |
int | pthread_once (FAR pthread_once_t *once_control, CODE void(*init_routine)(void)) |
dynamic package initialization More... | |
int | pthread_kill (pthread_t thread, int sig) |
send a signal to a thread More... | |
int | pthread_sigmask (int how, FAR const sigset_t *set, FAR sigset_t *oset) |
examine and change blocked signals More... | |
int | pthread_attr_init (FAR pthread_attr_t *attr) |
initialize the thread attributes object More... | |
int | pthread_attr_destroy (pthread_attr_t *attr) |
destroy the thread attributes object More... | |
int | pthread_attr_setschedpolicy (FAR pthread_attr_t *attr, int policy) |
set the schedpolicy attribute More... | |
int | pthread_attr_getschedpolicy (FAR const pthread_attr_t *attr, int *policy) |
get the schedpolicy attribute More... | |
int | pthread_attr_setschedparam (FAR pthread_attr_t *attr, FAR const struct sched_param *param) |
set the schedparam attribute More... | |
int | pthread_attr_getschedparam (FAR const pthread_attr_t *attr, FAR struct sched_param *param) |
get the schedparam attribute More... | |
int | pthread_attr_setinheritsched (FAR pthread_attr_t *attr, int inheritsched) |
set the inheritsched attribute More... | |
int | pthread_attr_getinheritsched (FAR const pthread_attr_t *attr, FAR int *inheritsched) |
get the inheritsched attribute More... | |
int | pthread_attr_setstacksize (FAR pthread_attr_t *attr, long stacksize) |
set the stacksize attribute More... | |
int | pthread_attr_getstacksize (FAR const pthread_attr_t *attr, long *stackaddr) |
get the stacksize attribute More... | |
int | pthread_mutexattr_init (FAR pthread_mutexattr_t *attr) |
initialize the mutex attributes object More... | |
int | pthread_mutexattr_destroy (FAR pthread_mutexattr_t *attr) |
destroy the mutex attributes object More... | |
int | pthread_mutexattr_getpshared (FAR const pthread_mutexattr_t *attr, FAR int *pshared) |
get the process-shared attribute More... | |
int | pthread_mutexattr_setpshared (FAR pthread_mutexattr_t *attr, int pshared) |
set the process-shared attribute More... | |
int | pthread_mutexattr_gettype (const pthread_mutexattr_t *attr, int *type) |
get the mutex type attribute More... | |
int | pthread_mutexattr_settype (pthread_mutexattr_t *attr, int type) |
set the mutex type attribute More... | |
int | pthread_mutexattr_getprotocol (FAR const pthread_mutexattr_t *attr, FAR int *protocol) |
get the protocol attribute of the mutex attributes object More... | |
int | pthread_mutexattr_setprotocol (FAR pthread_mutexattr_t *attr, int protocol) |
set the protocol attribute of the mutex attributes object More... | |
int | pthread_mutexattr_getrobust (FAR const pthread_mutexattr_t *attr, FAR int *robust) |
get the mutex robust attribute More... | |
int | pthread_mutexattr_setrobust (FAR pthread_mutexattr_t *attr, int robust) |
set the mutex robust attribute More... | |
int | pthread_condattr_init (FAR pthread_condattr_t *attr) |
initialize the condition variable attributes object More... | |
int | pthread_condattr_destroy (FAR pthread_condattr_t *attr) |
destroy the condition variable attributes object More... | |
int | pthread_barrierattr_destroy (FAR pthread_barrierattr_t *attr) |
destroy the barrier attributes object More... | |
int | pthread_barrierattr_init (FAR pthread_barrierattr_t *attr) |
initialize the barrier attributes object More... | |
int | pthread_barrierattr_getpshared (FAR const pthread_barrierattr_t *attr, FAR int *pshared) |
get the process-shared attribute of the barrier attributes object More... | |
int | pthread_barrierattr_setpshared (FAR pthread_barrierattr_t *attr, int pshared) |
set the process-shared attribute of the barrier attributes object More... | |
int | pthread_rwlock_destroy (FAR pthread_rwlock_t *rw_lock) |
destroy a read-write lock object More... | |
int | pthread_rwlock_init (FAR pthread_rwlock_t *rw_lock, FAR const pthread_rwlockattr_t *attr) |
initialize a read-write lock object More... | |
int | pthread_rwlock_rdlock (pthread_rwlock_t *lock) |
lock a read-write lock object for reading More... | |
int | pthread_rwlock_timedrdlock (FAR pthread_rwlock_t *lock, FAR const struct timespec *abstime) |
lock a read-write lock for reading More... | |
int | pthread_rwlock_timedwrlock (FAR pthread_rwlock_t *lock, FAR const struct timespec *abstime) |
lock a read-write lock for writing More... | |
int | pthread_rwlock_tryrdlock (FAR pthread_rwlock_t *lock) |
lock a read-write lock object for reading More... | |
int | pthread_rwlock_trywrlock (FAR pthread_rwlock_t *lock) |
lock a read-write lock object for reading More... | |
int | pthread_rwlock_unlock (FAR pthread_rwlock_t *lock) |
unlock a read-write lock object More... | |
int | pthread_rwlock_wrlock (FAR pthread_rwlock_t *lock) |
lock a read-write lock object for writing More... | |
Provides APIs for Pthreads.
#define pthread_equal | ( | t1, | |
t2 | |||
) | ((t1) == (t2)) |
compare thread IDs
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
#define pthread_getname_np | ( | thread, | |
name | |||
) | prctl((int)PR_GET_NAME, (char*)name, (int)thread) |
get the calling thread ID
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
#define pthread_setname_np | ( | thread, | |
name | |||
) | prctl((int)PR_SET_NAME, (char*)name, (int)thread) |
int pthread_attr_destroy | ( | pthread_attr_t * | attr | ) |
destroy the thread attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_getinheritsched | ( | FAR const pthread_attr_t * | attr, |
FAR int * | inheritsched | ||
) |
get the inheritsched attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_getschedparam | ( | FAR const pthread_attr_t * | attr, |
FAR struct sched_param * | param | ||
) |
get the schedparam attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_getschedpolicy | ( | FAR const pthread_attr_t * | attr, |
int * | policy | ||
) |
get the schedpolicy attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_getstacksize | ( | FAR const pthread_attr_t * | attr, |
long * | stackaddr | ||
) |
get the stacksize attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_init | ( | FAR pthread_attr_t * | attr | ) |
initialize the thread attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_setinheritsched | ( | FAR pthread_attr_t * | attr, |
int | inheritsched | ||
) |
set the inheritsched attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_setschedparam | ( | FAR pthread_attr_t * | attr, |
FAR const struct sched_param * | param | ||
) |
set the schedparam attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_setschedpolicy | ( | FAR pthread_attr_t * | attr, |
int | policy | ||
) |
set the schedpolicy attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_attr_setstacksize | ( | FAR pthread_attr_t * | attr, |
long | stacksize | ||
) |
set the stacksize attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrier_destroy | ( | FAR pthread_barrier_t * | barrier | ) |
destroy a barrier object
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrier_init | ( | FAR pthread_barrier_t * | barrier, |
FAR const pthread_barrierattr_t * | attr, | ||
unsigned int | count | ||
) |
initialize a barrier object
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrier_wait | ( | FAR pthread_barrier_t * | barrier | ) |
synchronize at a barrier
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrierattr_destroy | ( | FAR pthread_barrierattr_t * | attr | ) |
destroy the barrier attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrierattr_getpshared | ( | FAR const pthread_barrierattr_t * | attr, |
FAR int * | pshared | ||
) |
get the process-shared attribute of the barrier attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrierattr_init | ( | FAR pthread_barrierattr_t * | attr | ) |
initialize the barrier attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_barrierattr_setpshared | ( | FAR pthread_barrierattr_t * | attr, |
int | pshared | ||
) |
set the process-shared attribute of the barrier attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cancel | ( | pthread_t | thread | ) |
cancel execution of a thread
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cond_broadcast | ( | FAR pthread_cond_t * | cond | ) |
broadcast a condition
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cond_destroy | ( | FAR pthread_cond_t * | cond | ) |
destroy condition variables
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cond_init | ( | FAR pthread_cond_t * | cond, |
FAR const pthread_condattr_t * | attr | ||
) |
initialize condition variables
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cond_signal | ( | FAR pthread_cond_t * | cond | ) |
signal a condition
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cond_timedwait | ( | FAR pthread_cond_t * | cond, |
FAR pthread_mutex_t * | mutex, | ||
FAR const struct timespec * | abstime | ||
) |
wait on a condition
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_cond_wait | ( | FAR pthread_cond_t * | cond, |
FAR pthread_mutex_t * | mutex | ||
) |
wait on a condition
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_condattr_destroy | ( | FAR pthread_condattr_t * | attr | ) |
destroy the condition variable attributes object
#include <pthread.h> POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_condattr_init | ( | FAR pthread_condattr_t * | attr | ) |
initialize the condition variable attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_create | ( | FAR pthread_t * | thread, |
FAR const pthread_attr_t * | attr, | ||
pthread_startroutine_t | startroutine, | ||
pthread_addr_t | arg | ||
) |
thread creation
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_detach | ( | pthread_t | thread | ) |
detach a thread
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void pthread_exit | ( | pthread_addr_t | value | ) |
thread termination
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_getschedparam | ( | pthread_t | thread, |
FAR int * | policy, | ||
FAR struct sched_param * | param | ||
) |
dynamic thread scheduling parameters access
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR void* pthread_getspecific | ( | pthread_key_t | key | ) |
thread-specific data management
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_join | ( | pthread_t | thread, |
FAR pthread_addr_t * | value | ||
) |
wait for thread termination
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_key_create | ( | FAR pthread_key_t * | key, |
CODE void(*)(FAR void *) | destructor | ||
) |
thread-specific data key creation
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_kill | ( | pthread_t | thread, |
int | sig | ||
) |
send a signal to a thread
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutex_destroy | ( | FAR pthread_mutex_t * | mutex | ) |
destroy a mutex
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutex_init | ( | FAR pthread_mutex_t * | mutex, |
FAR const pthread_mutexattr_t * | attr | ||
) |
initialize a mutex
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutex_lock | ( | FAR pthread_mutex_t * | mutex | ) |
lock a mutex
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutex_trylock | ( | FAR pthread_mutex_t * | mutex | ) |
try to lock a mutex
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutex_unlock | ( | FAR pthread_mutex_t * | mutex | ) |
unlock a mutex
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_destroy | ( | FAR pthread_mutexattr_t * | attr | ) |
destroy the mutex attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_getprotocol | ( | FAR const pthread_mutexattr_t * | attr, |
FAR int * | protocol | ||
) |
get the protocol attribute of the mutex attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_getpshared | ( | FAR const pthread_mutexattr_t * | attr, |
FAR int * | pshared | ||
) |
get the process-shared attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_getrobust | ( | FAR const pthread_mutexattr_t * | attr, |
FAR int * | robust | ||
) |
get the mutex robust attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_gettype | ( | const pthread_mutexattr_t * | attr, |
int * | type | ||
) |
get the mutex type attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_init | ( | FAR pthread_mutexattr_t * | attr | ) |
initialize the mutex attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_setprotocol | ( | FAR pthread_mutexattr_t * | attr, |
int | protocol | ||
) |
set the protocol attribute of the mutex attributes object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_setpshared | ( | FAR pthread_mutexattr_t * | attr, |
int | pshared | ||
) |
set the process-shared attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_setrobust | ( | FAR pthread_mutexattr_t * | attr, |
int | robust | ||
) |
set the mutex robust attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_mutexattr_settype | ( | pthread_mutexattr_t * | attr, |
int | type | ||
) |
set the mutex type attribute
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_once | ( | FAR pthread_once_t * | once_control, |
CODE void(*)(void) | init_routine | ||
) |
dynamic package initialization
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_destroy | ( | FAR pthread_rwlock_t * | rw_lock | ) |
destroy a read-write lock object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_init | ( | FAR pthread_rwlock_t * | rw_lock, |
FAR const pthread_rwlockattr_t * | attr | ||
) |
initialize a read-write lock object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_rdlock | ( | pthread_rwlock_t * | lock | ) |
lock a read-write lock object for reading
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_timedrdlock | ( | FAR pthread_rwlock_t * | lock, |
FAR const struct timespec * | abstime | ||
) |
lock a read-write lock for reading
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_timedwrlock | ( | FAR pthread_rwlock_t * | lock, |
FAR const struct timespec * | abstime | ||
) |
lock a read-write lock for writing
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_tryrdlock | ( | FAR pthread_rwlock_t * | lock | ) |
lock a read-write lock object for reading
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_trywrlock | ( | FAR pthread_rwlock_t * | lock | ) |
lock a read-write lock object for reading
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_unlock | ( | FAR pthread_rwlock_t * | lock | ) |
unlock a read-write lock object
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_rwlock_wrlock | ( | FAR pthread_rwlock_t * | lock | ) |
lock a read-write lock object for writing
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_setcancelstate | ( | int | state, |
FAR int * | oldstate | ||
) |
set cancelability state
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_setcanceltype | ( | int | type, |
FAR int * | oldtype | ||
) |
set cancelability state
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_setschedparam | ( | pthread_t | thread, |
int | policy, | ||
FAR const struct sched_param * | param | ||
) |
dynamic thread scheduling parameters access
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_setschedprio | ( | pthread_t | thread, |
int | prio | ||
) |
dynamic thread scheduling parameters access
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pthread_setspecific | ( | pthread_key_t | key, |
FAR const void * | value | ||
) |
thread-specific data management
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
examine and change blocked signals
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void pthread_testcancel | ( | void | ) |
set cancelability state
#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void pthread_yield | ( | void | ) |
yield the processor
#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)