mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
0e2b1bfeed
- You can now use _gc(malloc()) in multithreaded programs - This change fixes a bug where fork() on NT disabled TLS - Fixed TLS code morphing on XNU/NT, for R8-R15 registers
16 lines
448 B
C
16 lines
448 B
C
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_THREADED_H_
|
|
#define COSMOPOLITAN_LIBC_NEXGEN32E_THREADED_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern int __threaded;
|
|
extern bool __tls_enabled;
|
|
extern unsigned __tls_index;
|
|
|
|
void TlsIsRequired(void);
|
|
void *__initialize_tls(char[64]);
|
|
void __install_tls(char[64]);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_THREADED_H_ */
|