basisu_c_sys 0.9.0

Rust binding and wrappers for Basis Universal C API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* pthread_arch.h — bare-metal wasm32 replacement for emscripten's version.
 *
 * wasm32 has no thread-pointer register. The musl multibyte/locale code we
 * compile asks for the "current thread" via __get_tp(); we return a pointer
 * to a static single-threaded pthread struct (see wasm_libc_shim.c).
 */
#ifndef _PTHREAD_ARCH_H
#define _PTHREAD_ARCH_H

#include <stdint.h>

uintptr_t __get_tp(void);

#define TP_ADJ(p) (p)

#define CANCEL_REG_IP 16

#endif