File wamr/pthread.cpp

namespace wasm

SYSCALL NUMBERING

Have a look in the sysroot at include/bits/syscall.h to determine the system call numbering.

Functions

uint32_t getFaasmPthreadApi(NativeSymbol **nativeSymbols)
static int32_t pthread_create_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b, int32_t c, int32_t d)
static int32_t pthread_join_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)
static int32_t pthread_once_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)
static int32_t pthread_mutex_init_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)
static int32_t pthread_mutex_lock_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_mutex_unlock_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_mutex_destroy_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_cond_init_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)
static int32_t pthread_cond_signal_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_cond_wait_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)
static int32_t pthread_cond_broadcast_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_cond_destroy_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_mutexattr_init_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_mutexattr_destroy_wrapper(wasm_exec_env_t exec_env, int32_t a)
static int32_t pthread_equal_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)

Variables

static NativeSymbol ns[] = {REG_NATIVE_FUNC(pthread_create, "(iiii)i"), REG_NATIVE_FUNC(pthread_join, "(ii)i"), REG_NATIVE_FUNC(pthread_once, "(ii)i"), REG_NATIVE_FUNC(pthread_mutex_init, "(ii)i"), REG_NATIVE_FUNC(pthread_mutex_lock, "(i)i"), REG_NATIVE_FUNC(pthread_mutex_unlock, "(i)i"), REG_NATIVE_FUNC(pthread_mutex_destroy, "(i)i"), REG_NATIVE_FUNC(pthread_cond_init, "(ii)i"), REG_NATIVE_FUNC(pthread_cond_signal, "(i)i"), REG_NATIVE_FUNC(pthread_cond_wait, "(ii)i"), REG_NATIVE_FUNC(pthread_cond_broadcast, "(i)i"), REG_NATIVE_FUNC(pthread_cond_destroy, "(i)i"), REG_NATIVE_FUNC(pthread_mutexattr_init, "(i)i"), REG_NATIVE_FUNC(pthread_mutexattr_destroy, "(i)i"), REG_NATIVE_FUNC(pthread_equal, "(ii)i"),}