VSF Documented
|
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "vsf.h"
#include "./simple_libc/time.h"
#include "./sched.h"
Go to the source code of this file.
Data Structures | |
struct | pthread_mutexattr_t |
struct | pthread_mutex_t |
struct | pthread_condattr_t |
struct | pthread_rwlock_t |
struct | pthread_rwlockattr_t |
struct | pthread_barrierattr_t |
struct | pthread_barrier_t |
struct | pthread_once_t |
struct | pthread_attr_t |
struct | vsf_linux_pthread_vplt_t |
Typedefs | |
typedef int | pthread_key_t |
typedef struct pthread_mutex_t | pthread_mutex_t |
typedef vsf_trig_t | pthread_cond_t |
typedef struct pthread_rwlock_t | pthread_rwlock_t |
typedef int | pthread_t |
typedef struct pthread_once_t | pthread_once_t |
typedef struct vsf_linux_pthread_vplt_t | vsf_linux_pthread_vplt_t |
Enumerations | |
enum | { PTHREAD_PROCESS_SHARED = 0 , PTHREAD_PROCESS_SHARED = 0 , PTHREAD_PROCESS_PRIVATE = 1 << 0 , PTHREAD_PROCESS_PRIVATE = 1 << 0 , PTHREAD_CREATE_JOINABLE = 0 , PTHREAD_CREATE_JOINABLE = 0 , PTHREAD_CREATE_DETACHED = 1 , PTHREAD_CREATE_DETACHED = 1 , PTHREAD_MUTEX_ERRORCHECK = 1 << 1 , PTHREAD_MUTEX_RECURSIVE = 1 << 2 , PTHREAD_MUTEX_NORMAL = 0 , PTHREAD_MUTEX_DEFAULT = 0 } |
enum | { PTHREAD_CANCEL_ENABLE , PTHREAD_CANCEL_DISABLE } |
enum | { PTHREAD_CANCEL_DEFERRED , PTHREAD_CANCEL_ASYNCHRONOUS } |
Variables | |
__VSF_VPLT_DECORATOR__ vsf_linux_pthread_vplt_t | vsf_linux_pthread_vplt |
#define pthread_atfork VSF_LINUX_WRAPPER(pthread_atfork) |
pthread_t pthread_self VSF_LINUX_WRAPPER(pthread_self) |
#define pthread_equal VSF_LINUX_WRAPPER(pthread_equal) |
#define pthread_create VSF_LINUX_WRAPPER(pthread_create) |
#define pthread_join VSF_LINUX_WRAPPER(pthread_join) |
#define pthread_detach VSF_LINUX_WRAPPER(pthread_detach) |
#define pthread_exit VSF_LINUX_WRAPPER(pthread_exit) |
#define pthread_cancel VSF_LINUX_WRAPPER(pthread_cancel) |
#define pthread_kill VSF_LINUX_WRAPPER(pthread_kill) |
#define pthread_once VSF_LINUX_WRAPPER(pthread_once) |
void pthread_testcancel VSF_LINUX_WRAPPER(pthread_testcancel) |
#define pthread_setcancelstate VSF_LINUX_WRAPPER(pthread_setcancelstate) |
#define pthread_setcanceltype VSF_LINUX_WRAPPER(pthread_setcanceltype) |
#define pthread_setschedparam VSF_LINUX_WRAPPER(pthread_setschedparam) |
#define pthread_getschedparam VSF_LINUX_WRAPPER(pthread_getschedparam) |
#define pthread_cleanup_push VSF_LINUX_WRAPPER(pthread_cleanup_push) |
#define pthread_cleanup_pop VSF_LINUX_WRAPPER(pthread_cleanup_pop) |
#define pthread_attr_init VSF_LINUX_WRAPPER(pthread_attr_init) |
#define pthread_attr_destroy VSF_LINUX_WRAPPER(pthread_attr_destroy) |
#define pthread_attr_setstack VSF_LINUX_WRAPPER(pthread_attr_setstack) |
#define pthread_attr_getstack VSF_LINUX_WRAPPER(pthread_attr_getstack) |
#define pthread_attr_setstackaddr VSF_LINUX_WRAPPER(pthread_attr_setstackaddr) |
#define pthread_attr_getstackaddr VSF_LINUX_WRAPPER(pthread_attr_getstackaddr) |
#define pthread_attr_setstacksize VSF_LINUX_WRAPPER(pthread_attr_setstacksize) |
#define pthread_attr_getstacksize VSF_LINUX_WRAPPER(pthread_attr_getstacksize) |
#define pthread_attr_setguardsize VSF_LINUX_WRAPPER(pthread_attr_setguardsize) |
#define pthread_attr_getguardsize VSF_LINUX_WRAPPER(pthread_attr_getguardsize) |
#define pthread_attr_setdetachstate VSF_LINUX_WRAPPER(pthread_attr_setdetachstate) |
#define pthread_attr_getdetachstate VSF_LINUX_WRAPPER(pthread_attr_getdetachstate) |
#define pthread_attr_setinheritsched VSF_LINUX_WRAPPER(pthread_attr_setinheritsched) |
#define pthread_attr_getinheritsched VSF_LINUX_WRAPPER(pthread_attr_getinheritsched) |
#define pthread_attr_setschedparam VSF_LINUX_WRAPPER(pthread_attr_setschedparam) |
#define pthread_attr_getschedparam VSF_LINUX_WRAPPER(pthread_attr_getschedparam) |
#define pthread_attr_setschedpolicy VSF_LINUX_WRAPPER(pthread_attr_setschedpolicy) |
#define pthread_attr_getschedpolicy VSF_LINUX_WRAPPER(pthread_attr_getschedpolicy) |
#define pthread_attr_setscope VSF_LINUX_WRAPPER(pthread_attr_setscope) |
#define pthread_attr_getscope VSF_LINUX_WRAPPER(pthread_attr_getscope) |
#define pthread_key_create VSF_LINUX_WRAPPER(pthread_key_create) |
#define pthread_key_delete VSF_LINUX_WRAPPER(pthread_key_delete) |
#define pthread_setspecific VSF_LINUX_WRAPPER(pthread_setspecific) |
#define pthread_getspecific VSF_LINUX_WRAPPER(pthread_getspecific) |
#define pthread_mutex_init VSF_LINUX_WRAPPER(pthread_mutex_init) |
#define pthread_mutex_destroy VSF_LINUX_WRAPPER(pthread_mutex_destroy) |
#define pthread_mutex_lock VSF_LINUX_WRAPPER(pthread_mutex_lock) |
#define pthread_mutex_trylock VSF_LINUX_WRAPPER(pthread_mutex_trylock) |
#define pthread_mutex_unlock VSF_LINUX_WRAPPER(pthread_mutex_unlock) |
#define pthread_mutexattr_init VSF_LINUX_WRAPPER(pthread_mutexattr_init) |
#define pthread_mutexattr_destroy VSF_LINUX_WRAPPER(pthread_mutexattr_destroy) |
#define pthread_mutexattr_setpshared VSF_LINUX_WRAPPER(pthread_mutexattr_setpshared) |
#define pthread_mutexattr_getpshared VSF_LINUX_WRAPPER(pthread_mutexattr_getpshared) |
#define pthread_mutexattr_settype VSF_LINUX_WRAPPER(pthread_mutexattr_settype) |
#define pthread_mutexattr_gettype VSF_LINUX_WRAPPER(pthread_mutexattr_gettype) |
#define pthread_cond_init VSF_LINUX_WRAPPER(pthread_cond_init) |
#define pthread_cond_destroy VSF_LINUX_WRAPPER(pthread_cond_destroy) |
#define pthread_cond_signal VSF_LINUX_WRAPPER(pthread_cond_signal) |
#define pthread_cond_broadcast VSF_LINUX_WRAPPER(pthread_cond_broadcast) |
#define pthread_cond_wait VSF_LINUX_WRAPPER(pthread_cond_wait) |
#define pthread_cond_timedwait VSF_LINUX_WRAPPER(pthread_cond_timedwait) |
#define pthread_condattr_init VSF_LINUX_WRAPPER(pthread_condattr_init) |
#define pthread_condattr_destroy VSF_LINUX_WRAPPER(pthread_condattr_destroy) |
#define pthread_condattr_setpshared VSF_LINUX_WRAPPER(pthread_condattr_setpshared) |
#define pthread_condattr_getpshared VSF_LINUX_WRAPPER(pthread_condattr_getpshared) |
#define pthread_condattr_setclock VSF_LINUX_WRAPPER(pthread_condattr_setclock) |
#define pthread_condattr_getclock VSF_LINUX_WRAPPER(pthread_condattr_getclock) |
#define pthread_rwlock_init VSF_LINUX_WRAPPER(pthread_rwlock_init) |
#define pthread_rwlock_destroy VSF_LINUX_WRAPPER(pthread_rwlock_destroy) |
#define pthread_rwlock_rdlock VSF_LINUX_WRAPPER(pthread_rwlock_rdlock) |
#define pthread_rwlock_tryrdlock VSF_LINUX_WRAPPER(pthread_rwlock_tryrdlock) |
#define pthread_rwlock_timedrdlock VSF_LINUX_WRAPPER(pthread_rwlock_timedrdlock) |
#define pthread_rwlock_wrlock VSF_LINUX_WRAPPER(pthread_rwlock_wrlock) |
#define pthread_rwlock_trywrlock VSF_LINUX_WRAPPER(pthread_rwlock_trywrlock) |
#define pthread_rwlock_timedwrlock VSF_LINUX_WRAPPER(pthread_rwlock_timedwrlock) |
#define pthread_rwlock_unlock VSF_LINUX_WRAPPER(pthread_rwlock_unlock) |
#define pthread_barrier_init VSF_LINUX_WRAPPER(pthread_barrier_init) |
#define pthread_barrier_destroy VSF_LINUX_WRAPPER(pthread_barrier_destroy) |
#define pthread_barrier_wait VSF_LINUX_WRAPPER(pthread_barrier_wait) |
#define pthread_barrierattr_init VSF_LINUX_WRAPPER(pthread_barrierattr_init) |
#define pthread_barrierattr_destroy VSF_LINUX_WRAPPER(pthread_barrierattr_destroy) |
#define pthread_barrierattr_getpshared VSF_LINUX_WRAPPER(pthread_barrierattr_getpshared) |
#define pthread_barrierattr_setpshared VSF_LINUX_WRAPPER(pthread_barrierattr_setpshared) |
#define pthread_setname_np VSF_LINUX_WRAPPER(pthread_setname_np) |
#define pthread_getname_np VSF_LINUX_WRAPPER(pthread_getname_np) |
#define PTHREAD_MUTEX_INITIALIZER |
#define PTHREAD_COND_INITIALIZER |
#define PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED |
#define PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE |
#define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE |
#define PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED |
#define PTHREAD_RWLOCK_INITIALIZER { 0 } |
#define PTHREAD_BARRIER_SERIAL_THREAD (-2) |
#define PTHREAD_ONCE_INIT |
#define PTHREAD_STACK_MIN 1024 |
typedef int pthread_key_t |
typedef struct pthread_mutex_t pthread_mutex_t |
typedef vsf_trig_t pthread_cond_t |
typedef struct pthread_rwlock_t pthread_rwlock_t |
typedef int pthread_t |
typedef struct pthread_once_t pthread_once_t |
typedef struct vsf_linux_pthread_vplt_t vsf_linux_pthread_vplt_t |
anonymous enum |
int pthread_mutex_init | ( | pthread_mutex_t * | mutex, |
const pthread_mutexattr_t * | mattr | ||
) |
int pthread_mutex_destroy | ( | pthread_mutex_t * | mutex | ) |
int pthread_mutex_lock | ( | pthread_mutex_t * | mutex | ) |
int pthread_mutex_trylock | ( | pthread_mutex_t * | mutex | ) |
int pthread_mutex_unlock | ( | pthread_mutex_t * | mutex | ) |
int pthread_mutexattr_init | ( | pthread_mutexattr_t * | mattr | ) |
int pthread_mutexattr_destroy | ( | pthread_mutexattr_t * | mattr | ) |
int pthread_mutexattr_setpshared | ( | pthread_mutexattr_t * | mattr, |
int | pshared | ||
) |
int pthread_mutexattr_getpshared | ( | pthread_mutexattr_t * | mattr, |
int * | pshared | ||
) |
int pthread_mutexattr_settype | ( | pthread_mutexattr_t * | mattr, |
int | type | ||
) |
int pthread_mutexattr_gettype | ( | pthread_mutexattr_t * | mattr, |
int * | type | ||
) |
int pthread_cond_init | ( | pthread_cond_t * | cond, |
const pthread_condattr_t * | cattr | ||
) |
int pthread_cond_destroy | ( | pthread_cond_t * | cond | ) |
int pthread_cond_signal | ( | pthread_cond_t * | cond | ) |
int pthread_cond_broadcast | ( | pthread_cond_t * | cond | ) |
int pthread_cond_wait | ( | pthread_cond_t * | cond, |
pthread_mutex_t * | mutex | ||
) |
int pthread_cond_timedwait | ( | pthread_cond_t * | cond, |
pthread_mutex_t * | mutex, | ||
const struct timespec * | abstime | ||
) |
int pthread_condattr_init | ( | pthread_condattr_t * | cattr | ) |
int pthread_condattr_destroy | ( | pthread_condattr_t * | cattr | ) |
int pthread_condattr_setpshared | ( | pthread_condattr_t * | cattr, |
int | pshared | ||
) |
int pthread_condattr_getpshared | ( | pthread_condattr_t * | cattr, |
int * | pshared | ||
) |
int pthread_condattr_getclock | ( | const pthread_condattr_t * | cattr, |
clockid_t * | clockid | ||
) |
int pthread_condattr_setclock | ( | pthread_condattr_t * | cattr, |
clockid_t | clockid | ||
) |
int pthread_rwlock_init | ( | pthread_rwlock_t * | rwlock, |
const pthread_rwlockattr_t * | attr | ||
) |
int pthread_rwlock_destroy | ( | pthread_rwlock_t * | rwlock | ) |
int pthread_rwlock_rdlock | ( | pthread_rwlock_t * | rwlock | ) |
int pthread_rwlock_tryrdlock | ( | pthread_rwlock_t * | rwlock | ) |
int pthread_rwlock_timedrdlock | ( | pthread_rwlock_t * | rwlock, |
const struct timespec * | abstime | ||
) |
int pthread_rwlock_wrlock | ( | pthread_rwlock_t * | rwlock | ) |
int pthread_rwlock_trywrlock | ( | pthread_rwlock_t * | rwlock | ) |
int pthread_rwlock_timedwrlock | ( | pthread_rwlock_t * | rwlock, |
const struct timespec * | abstime | ||
) |
int pthread_rwlock_unlock | ( | pthread_rwlock_t * | rwlock | ) |
int pthread_atfork | ( | void(*)(void) | prepare, |
void(*)(void) | parent, | ||
void(*)(void) | child | ||
) |
int pthread_create | ( | pthread_t * | tidp, |
const pthread_attr_t * | attr, | ||
void *(*)(void *) | start_rtn, | ||
void * | arg | ||
) |
int pthread_join | ( | pthread_t | tid, |
void ** | retval | ||
) |
int pthread_detach | ( | pthread_t | thread | ) |
void pthread_exit | ( | void * | retval | ) |
int pthread_cancel | ( | pthread_t | thread | ) |
int pthread_kill | ( | pthread_t | thread, |
int | sig | ||
) |
int pthread_once | ( | pthread_once_t * | once_control, |
void(*)(void) | init_routine | ||
) |
int pthread_setcancelstate | ( | int | state, |
int * | oldstate | ||
) |
int pthread_setcanceltype | ( | int | type, |
int * | oldtype | ||
) |
int pthread_setschedparam | ( | pthread_t | thread, |
int | policy, | ||
const struct sched_param * | param | ||
) |
int pthread_getschedparam | ( | pthread_t | thread, |
int * | policy, | ||
struct sched_param * | param | ||
) |
void pthread_cleanup_push | ( | void(*)(void *) | routine, |
void * | arg | ||
) |
void pthread_cleanup_pop | ( | int | execute | ) |
int pthread_attr_init | ( | pthread_attr_t * | attr | ) |
int pthread_attr_destroy | ( | pthread_attr_t * | attr | ) |
int pthread_attr_setstack | ( | pthread_attr_t * | attr, |
void * | stackaddr, | ||
size_t | stacksize | ||
) |
int pthread_attr_getstack | ( | const pthread_attr_t * | attr, |
void ** | stackaddr, | ||
size_t * | stacksize | ||
) |
int pthread_attr_setstackaddr | ( | pthread_attr_t * | attr, |
void * | stackaddr | ||
) |
int pthread_attr_getstackaddr | ( | const pthread_attr_t * | attr, |
void ** | stackaddr | ||
) |
int pthread_attr_setstacksize | ( | pthread_attr_t * | attr, |
size_t | stacksize | ||
) |
int pthread_attr_getstacksize | ( | const pthread_attr_t * | attr, |
size_t * | stacksize | ||
) |
int pthread_attr_setguardsize | ( | pthread_attr_t * | attr, |
size_t | guardsize | ||
) |
int pthread_attr_getguardsize | ( | const pthread_attr_t * | attr, |
size_t * | guardsize | ||
) |
int pthread_attr_setdetachstate | ( | pthread_attr_t * | attr, |
int | detachstate | ||
) |
int pthread_attr_getdetachstate | ( | const pthread_attr_t * | attr, |
int * | detachstate | ||
) |
int pthread_attr_setinheritsched | ( | pthread_attr_t * | attr, |
int | inheritsched | ||
) |
int pthread_attr_getinheritsched | ( | const pthread_attr_t * | attr, |
int * | inheritsched | ||
) |
int pthread_attr_setschedparam | ( | pthread_attr_t * | attr, |
const struct sched_param * | param | ||
) |
int pthread_attr_getschedparam | ( | pthread_attr_t * | attr, |
struct sched_param * | param | ||
) |
int pthread_attr_setschedpolicy | ( | pthread_attr_t * | attr, |
int | policy | ||
) |
int pthread_attr_getschedpolicy | ( | const pthread_attr_t * | attr, |
int * | policy | ||
) |
int pthread_attr_setscope | ( | pthread_attr_t * | attr, |
int | contentionscope | ||
) |
int pthread_attr_getscope | ( | const pthread_attr_t * | attr, |
int * | contentionscope | ||
) |
int pthread_barrier_init | ( | pthread_barrier_t * | barrier, |
const pthread_barrierattr_t * | attr, | ||
unsigned int | count | ||
) |
int pthread_barrier_destroy | ( | pthread_barrier_t * | barrier | ) |
int pthread_barrier_wait | ( | pthread_barrier_t * | barrier | ) |
int pthread_barrierattr_init | ( | pthread_barrierattr_t * | battr | ) |
int pthread_barrierattr_destroy | ( | pthread_barrierattr_t * | battr | ) |
int pthread_barrierattr_getpshared | ( | const pthread_barrierattr_t * | battr, |
int * | pshared | ||
) |
int pthread_barrierattr_setpshared | ( | pthread_barrierattr_t * | battr, |
int | pshared | ||
) |
int pthread_setname_np | ( | pthread_t | thread, |
const char * | name | ||
) |
|
extern |