Tizen RT Libs&Environment  v1.1 D4

Provides APIs for Pthreads. More...

Collaboration diagram for PTHREAD:

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...
 

Detailed Description

Provides APIs for Pthreads.

Macro Definition Documentation

◆ pthread_equal

#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/)

Since
Tizen RT v1.0

Definition at line 548 of file pthread.h.

◆ pthread_getname_np

#define pthread_getname_np (   thread,
  name 
)    prctl((int)PR_GET_NAME, (char*)name, (int)thread)

gets the name of pthread

#include <pthread.h>

Parameters
[in]threadpid of pthread
[in]namespace for saving pthread name
Returns
On success, OK is returned. On failure, ERROR is returned and errno is set appropriately.
Since
Tizen RT v1.0

Definition at line 234 of file pthread.h.

◆ pthread_self

#define pthread_self ( )    ((pthread_t)getpid())

get the calling thread ID

#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
Tizen RT v1.0

Definition at line 537 of file pthread.h.

◆ pthread_setname_np

#define pthread_setname_np (   thread,
  name 
)    prctl((int)PR_SET_NAME, (char*)name, (int)thread)

sets the name of pthread

#include <pthread.h>

Parameters
[in]threadpid of pthread
[in]namename for setting
Returns
On success, OK is returned. On failure, ERROR is returned and errno is set appropriately.
Since
Tizen RT v1.0

Definition at line 222 of file pthread.h.

Function Documentation

◆ pthread_attr_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_getinheritsched()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_getschedparam()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_getschedpolicy()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_getstacksize()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_init()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_setinheritsched()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_setschedparam()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_setschedpolicy()

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/)

Since
Tizen RT v1.0

◆ pthread_attr_setstacksize()

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/)

Since
Tizen RT v1.0

◆ pthread_barrier_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_barrier_init()

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/)

Since
Tizen RT v1.0

◆ pthread_barrier_wait()

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/)

Since
Tizen RT v1.0

◆ pthread_barrierattr_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_barrierattr_getpshared()

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/)

Since
Tizen RT v1.0

◆ pthread_barrierattr_init()

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/)

Since
Tizen RT v1.0

◆ pthread_barrierattr_setpshared()

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/)

Since
Tizen RT v1.0

◆ pthread_cancel()

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/)

Since
Tizen RT v1.0

◆ pthread_cond_broadcast()

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/)

Since
Tizen RT v1.0

◆ pthread_cond_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_cond_init()

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/)

Since
Tizen RT v1.0

◆ pthread_cond_signal()

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/)

Since
Tizen RT v1.0

◆ pthread_cond_timedwait()

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/)

Since
Tizen RT v1.0

◆ pthread_cond_wait()

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/)

Since
Tizen RT v1.0

◆ pthread_condattr_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_condattr_init()

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/)

Since
Tizen RT v1.0

◆ pthread_create()

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/)

Since
Tizen RT v1.0

◆ pthread_detach()

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/)

Since
Tizen RT v1.0

◆ pthread_exit()

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/)

Since
Tizen RT v1.0

◆ pthread_getschedparam()

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/)

Since
Tizen RT v1.0

◆ pthread_getspecific()

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/)

Since
Tizen RT v1.0

◆ pthread_join()

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/)

Since
Tizen RT v1.0

◆ pthread_key_create()

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/)

Since
Tizen RT v1.0

◆ pthread_kill()

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/)

Since
Tizen RT v1.0

◆ pthread_mutex_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_mutex_init()

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/)

Since
Tizen RT v1.0

◆ pthread_mutex_lock()

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/)

Since
Tizen RT v1.0

◆ pthread_mutex_trylock()

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/)

Since
Tizen RT v1.0

◆ pthread_mutex_unlock()

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/)

Since
Tizen RT v1.0

◆ pthread_mutexattr_destroy()

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/)

Since
Tizen RT v1.0

◆ pthread_mutexattr_getprotocol()

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/)

Since
Tizen RT v1.1

◆ pthread_mutexattr_getpshared()

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/)

Since
Tizen RT v1.0

◆ pthread_mutexattr_getrobust()

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/)

Since
Tizen RT v1.1

◆ pthread_mutexattr_gettype()

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/)

Since
Tizen RT v1.0

◆ pthread_mutexattr_init()

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/)

Since
Tizen RT v1.0

◆ pthread_mutexattr_setprotocol()

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/)

Since
Tizen RT v1.1

◆ pthread_mutexattr_setpshared()

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/)

Since
Tizen RT v1.0

◆ pthread_mutexattr_setrobust()

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/)

Since
Tizen RT v1.1

◆ pthread_mutexattr_settype()

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/)

Since
Tizen RT v1.0

◆ pthread_once()

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/)

Since
Tizen RT v1.0

◆ pthread_rwlock_destroy()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_init()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_rdlock()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_timedrdlock()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_timedwrlock()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_tryrdlock()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_trywrlock()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_unlock()

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/)

Since
Tizen RT v1.1

◆ pthread_rwlock_wrlock()

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/)

Since
Tizen RT v1.1

◆ pthread_setcancelstate()

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/)

Since
Tizen RT v1.0

◆ pthread_setcanceltype()

int pthread_setcanceltype ( int  type,
FAR int *  oldtype 
)

set cancelability state

#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
Tizen RT v1.1

◆ pthread_setschedparam()

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/)

Since
Tizen RT v1.0

◆ pthread_setschedprio()

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/)

Since
Tizen RT v1.0

◆ pthread_setspecific()

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/)

Since
Tizen RT v1.0

◆ pthread_sigmask()

int pthread_sigmask ( int  how,
FAR const sigset_t set,
FAR sigset_t oset 
)

examine and change blocked signals

#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
Tizen RT v1.0

◆ pthread_testcancel()

void pthread_testcancel ( void  )

set cancelability state

#include <pthread.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
Tizen RT v1.1

◆ pthread_yield()

void pthread_yield ( void  )

yield the processor

#include <pthread.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
Tizen RT v1.0