Go to the source code of this file.
◆ PTHREAD_MUTEX_INITIALIZER
#define PTHREAD_MUTEX_INITIALIZER |
Value:{ \
}
#define ZRTOS_TASK_MUTEX__INITIALIZER
Definition at line 42 of file task_pthread.h.
◆ pthread_attr_destroy()
◆ pthread_attr_init()
Definition at line 58 of file task_pthread.h.
#define ZRTOS_ARCH__GET_CPU_STATE_BUFFER_LENGTH()
#define ZRTOS_ARCH__GET_FN_CALL_STACK_LENGTH()
◆ pthread_attr_setstacksize()
◆ pthread_create()
int pthread_create |
( |
pthread_t *restrict |
thread, |
|
|
const pthread_attr_t *restrict |
attr, |
|
|
void *(*)(void *) |
start_routine, |
|
|
void *restrict |
arg |
|
) |
| |
Definition at line 117 of file task_pthread.h.
#define ZRTOS_TASK_SCHEDULER__DO_NOT_DISTURB(code)
uint8_t zrtos_arch_stack_t
#define ZRTOS_TYPES__MAX(a, b)
void *(* callback)(void *args)
void zrtos_task_pthread__trampoline_cb(void *args)
#define ZRTOS_ARCH__GET_CPU_STATE_BUFFER_LENGTH()
bool zrtos_task_scheduler__add_task(zrtos_task_t *task)
void * zrtos_malloc__malloc(zrtos_malloc_t *thiz, size_t length)
bool zrtos_task__init_ex(zrtos_task_t *thiz, zrtos_arch_stack_t *heap, zrtos_arch_callback_t callback, void *args)
void * zrtos_types__ptr_add(void *ptr, size_t byte_len)
void * zrtos_task_pthread__get_heap(void)
struct _zrtos_task_t zrtos_task_t
#define ZRTOS_ARCH__GET_FN_CALL_STACK_LENGTH()
◆ pthread_equal()
Definition at line 171 of file task_pthread.h.
int zrtos_types__ptr_cmp(void *a, void *b)
◆ pthread_join()
int pthread_join |
( |
pthread_t |
thread, |
|
|
void ** |
retval |
|
) |
| |
Definition at line 191 of file task_pthread.h.
#define ZRTOS_TASK_SCHEDULER__DO_NOT_DISTURB(code)
static void zrtos_task_pthread__free(zrtos_task_t *task)
bool zrtos_task__is_done(zrtos_task_t *thiz)
bool zrtos_task_scheduler__has_task(zrtos_task_t *task)
static void _zrtos_task_scheduler__on_tick_ex(void)
◆ pthread_mutex_destroy()
Definition at line 89 of file task_pthread.h.
void zrtos_task_mutex__deinit(zrtos_task_mutex_t *thiz)
◆ pthread_mutex_init()
Definition at line 82 of file task_pthread.h.
bool zrtos_task_mutex__init(zrtos_task_mutex_t *thiz)
◆ pthread_mutex_lock()
Definition at line 223 of file task_pthread.h.
int zrtos_task_mutex__lock(zrtos_task_mutex_t *thiz)
◆ pthread_mutex_trylock()
Definition at line 227 of file task_pthread.h.
int zrtos_task_mutex__try_lock(zrtos_task_mutex_t *thiz)
◆ pthread_mutex_unlock()
Definition at line 231 of file task_pthread.h.
int zrtos_task_mutex__unlock(zrtos_task_mutex_t *thiz)
◆ pthread_mutexattr_destroy()
◆ pthread_mutexattr_init()
◆ pthread_self()
Definition at line 94 of file task_pthread.h.
zrtos_task_t * _zrtos_task_scheduler__get_active_task(void)
◆ zrtos_task_pthread__free()
Definition at line 175 of file task_pthread.h.
bool zrtos_task_scheduler__remove_task(zrtos_task_t *task)
void zrtos_malloc__free(void *ptr)
static zrtos_task_t * zrtos_task_scheduler__get_any_child(zrtos_task_t *task)
◆ zrtos_task_pthread__get_heap()
void* zrtos_task_pthread__get_heap |
( |
void |
| ) |
|
◆ zrtos_task_pthread__set_heap()
void zrtos_task_pthread__set_heap |
( |
void * |
heap | ) |
|
◆ zrtos_task_pthread__trampoline_cb()
void zrtos_task_pthread__trampoline_cb |
( |
void * |
args | ) |
|
Definition at line 100 of file task_pthread.h.
111 __builtin_unreachable();
void * zrtos_types__ptr_subtract(void *ptr, size_t byte_len)
void *(* callback)(void *args)
void zrtos_task__set_done(zrtos_task_t *thiz)
static void _zrtos_task_scheduler__on_tick_ex(void)
◆ zrtos_task_pthread__heap
void* zrtos_task_pthread__heap |