#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
Go to the source code of this file.
◆ __sync_fetch_and_add
#define __sync_fetch_and_add |
( |
|
p, |
|
|
|
a |
|
) |
| ((*(p) += (a)), *(p) - (a)) |
◆ aligned_alloc
#define aligned_alloc |
( |
|
a, |
|
|
|
s |
|
) |
| _aligned_malloc(s, a) |
◆ aligned_free
#define aligned_free |
( |
|
p | ) |
_aligned_free(p) |
◆ sched_yield
◆ sysconf
◆ threads_mutex_destroy
#define threads_mutex_destroy |
( |
|
m | ) |
((void*)m) |
◆ threads_mutex_init
#define threads_mutex_init |
( |
|
m, |
|
|
|
p |
|
) |
| ((void*)m) |
◆ threads_mutex_lock
#define threads_mutex_lock |
( |
|
m | ) |
((void*)m) |
◆ threads_mutex_unlock
#define threads_mutex_unlock |
( |
|
m | ) |
((void*)m) |
◆ usleep
◆ threads_t
◆ pthread_pool_task_init()
static void pthread_pool_task_init |
( |
uint32_t * |
task, |
|
|
void * |
pool, |
|
|
void *(*)(void *) |
f, |
|
|
void * |
param |
|
) |
| |
|
inlinestatic |
◆ pthread_pool_wait()
static void pthread_pool_wait |
( |
void * |
pool | ) |
|
|
inlinestatic |
◆ threads_cleanup()
◆ threads_init()
static threads_t* threads_init |
( |
uint32_t |
num_threads | ) |
|
|
inlinestatic |
◆ threads_id