mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
0b3c81dd4e
This change makes fork() go nearly as fast as sys_fork() on UNIX. As for Windows this change shaves about 4-5ms off fork() + wait() latency. This is accomplished by using WriteProcessMemory() from the parent process to setup the address space of a suspended process; it is better than a pipe
15 lines
380 B
C
15 lines
380 B
C
#ifndef COSMOPOLITAN_THIRD_PARTY_GDTOA_LOCK_H_
|
|
#define COSMOPOLITAN_THIRD_PARTY_GDTOA_LOCK_H_
|
|
#include "libc/thread/thread.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
void __gdtoa_lock(void);
|
|
void __gdtoa_unlock(void);
|
|
void __gdtoa_wipe(void);
|
|
|
|
void __gdtoa_lock1(void);
|
|
void __gdtoa_unlock1(void);
|
|
void __gdtoa_wipe1(void);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_GDTOA_LOCK_H_ */
|