Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <pthread.h>
#include <assert.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <limits.h>
Go to the source code of this file.
Classes | |
struct | uv_semaphore_s |
Macros | |
#define | NANOSEC ((uint64_t) 1e9) |
#define | platform_needs_custom_semaphore 0 |
Typedefs | |
typedef struct uv_semaphore_s | uv_semaphore_t |
typedef struct uv_semaphore_s uv_semaphore_t |
|
static |
|
static |
Definition at line 551 of file thread.c.
References uv_semaphore_s::cond, uv_semaphore_s::mutex, uv__free(), uv_cond_destroy(), and uv_mutex_destroy().
Referenced by uv_sem_destroy().
Definition at line 526 of file thread.c.
References uv_semaphore_s::cond, err, uv_semaphore_s::mutex, NULL, uv__free(), uv__malloc(), uv_cond_init(), uv_mutex_destroy(), uv_mutex_init(), value, and uv_semaphore_s::value.
Referenced by uv_sem_init().
|
static |
Definition at line 561 of file thread.c.
References uv_semaphore_s::cond, uv_semaphore_s::mutex, uv_cond_signal(), uv_mutex_lock(), uv_mutex_unlock(), and uv_semaphore_s::value.
Referenced by uv_sem_post().
Definition at line 585 of file thread.c.
References uv_semaphore_s::mutex, uv_mutex_trylock(), uv_mutex_unlock(), and uv_semaphore_s::value.
Referenced by uv_sem_trywait().
|
static |
Definition at line 573 of file thread.c.
References uv_semaphore_s::cond, uv_semaphore_s::mutex, uv_cond_wait(), uv_mutex_lock(), uv_mutex_unlock(), and uv_semaphore_s::value.
Referenced by uv_sem_wait().
|
static |
Definition at line 603 of file thread.c.
References sem_init(), UV__ERR, and value.
Referenced by uv_sem_init().
|
static |
Definition at line 634 of file thread.c.
References EAGAIN, EINTR, r, and sem_trywait().
Referenced by uv_sem_trywait().
|
static |
Definition at line 622 of file thread.c.
References EINTR, r, and sem_wait().
Referenced by uv_sem_wait().
void uv_barrier_destroy | ( | uv_barrier_t * | barrier | ) |
Definition at line 118 of file thread.c.
int uv_barrier_init | ( | uv_barrier_t * | barrier, |
unsigned int | count | ||
) |
Definition at line 55 of file thread.c.
int uv_barrier_wait | ( | uv_barrier_t * | barrier | ) |
void uv_cond_broadcast | ( | uv_cond_t * | cond | ) |
void uv_cond_destroy | ( | uv_cond_t * | cond | ) |
Definition at line 735 of file thread.c.
Referenced by uv__custom_sem_destroy(), and uv_barrier_destroy().
Definition at line 704 of file thread.c.
Referenced by uv__custom_sem_init(), and uv_barrier_init().
void uv_cond_signal | ( | uv_cond_t * | cond | ) |
Definition at line 769 of file thread.c.
Referenced by uv__custom_sem_post(), and uv_barrier_wait().
int uv_cond_timedwait | ( | uv_cond_t * | cond, |
uv_mutex_t * | mutex, | ||
uint64_t | timeout | ||
) |
Definition at line 785 of file thread.c.
void uv_cond_wait | ( | uv_cond_t * | cond, |
uv_mutex_t * | mutex | ||
) |
Definition at line 779 of file thread.c.
Referenced by uv__custom_sem_wait(), and uv_barrier_wait().
Definition at line 823 of file thread.c.
Referenced by uv__init_current_thread_key().
void uv_key_delete | ( | uv_key_t * | key | ) |
void* uv_key_get | ( | uv_key_t * | key | ) |
Definition at line 834 of file thread.c.
Referenced by uv_thread_self().
void uv_key_set | ( | uv_key_t * | key, |
void * | value | ||
) |
Definition at line 839 of file thread.c.
Referenced by uv__thread_start().
void uv_mutex_destroy | ( | uv_mutex_t * | mutex | ) |
Definition at line 324 of file thread.c.
Referenced by uv__custom_sem_destroy(), uv__custom_sem_init(), uv_barrier_destroy(), and uv_barrier_init().
int uv_mutex_init | ( | uv_mutex_t * | mutex | ) |
Definition at line 282 of file thread.c.
Referenced by uv__custom_sem_init(), uv_barrier_init(), and uv_mutex_init_recursive().
int uv_mutex_init_recursive | ( | uv_mutex_t * | mutex | ) |
void uv_mutex_lock | ( | uv_mutex_t * | mutex | ) |
Definition at line 330 of file thread.c.
Referenced by uv__custom_sem_post(), uv__custom_sem_wait(), uv_barrier_destroy(), and uv_barrier_wait().
int uv_mutex_trylock | ( | uv_mutex_t * | mutex | ) |
void uv_mutex_unlock | ( | uv_mutex_t * | mutex | ) |
Definition at line 350 of file thread.c.
Referenced by uv__custom_sem_post(), uv__custom_sem_trywait(), uv__custom_sem_wait(), uv_barrier_destroy(), and uv_barrier_wait().
void uv_once | ( | uv_once_t * | guard, |
void(*)(void) | callback | ||
) |
Definition at line 419 of file thread.c.
Referenced by uv__thread_start(), uv_sem_init(), and uv_thread_self().
void uv_rwlock_destroy | ( | uv_rwlock_t * | rwlock | ) |
int uv_rwlock_init | ( | uv_rwlock_t * | rwlock | ) |
void uv_rwlock_rdlock | ( | uv_rwlock_t * | rwlock | ) |
void uv_rwlock_rdunlock | ( | uv_rwlock_t * | rwlock | ) |
int uv_rwlock_tryrdlock | ( | uv_rwlock_t * | rwlock | ) |
int uv_rwlock_trywrlock | ( | uv_rwlock_t * | rwlock | ) |
void uv_rwlock_wrlock | ( | uv_rwlock_t * | rwlock | ) |
void uv_rwlock_wrunlock | ( | uv_rwlock_t * | rwlock | ) |
void uv_sem_destroy | ( | uv_sem_t * | sem | ) |
Definition at line 650 of file thread.c.
Referenced by uv_barrier_init().
void uv_sem_post | ( | uv_sem_t * | sem | ) |
void uv_sem_wait | ( | uv_sem_t * | sem | ) |
int uv_thread_create | ( | uv_thread_t * | tid, |
void(*)(void *arg) | entry, | ||
void * | arg | ||
) |
Definition at line 210 of file thread.c.
int uv_thread_create_ex | ( | uv_thread_t * | tid, |
const uv_thread_options_t * | params, | ||
void(*)(void *arg) | entry, | ||
void * | arg | ||
) |
int uv_thread_equal | ( | const uv_thread_t * | t1, |
const uv_thread_t * | t2 | ||
) |
int uv_thread_join | ( | uv_thread_t * | tid | ) |
uv_thread_t uv_thread_self | ( | void | ) |