mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Get threads working on all platforms
We now have a high-quality clone() implementation for creating lightweight threads on Linux/Windows/FreeBSD/NetBSD/OpenBSD.
This commit is contained in:
parent
4e62cefa6e
commit
fec396037a
43 changed files with 850 additions and 532 deletions
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_TerminateThread,TerminateThread,0
|
||||
|
||||
.text.windows
|
||||
TerminateThread:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_TerminateThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn TerminateThread,globl
|
||||
.previous
|
||||
|
|
|
@ -1208,7 +1208,7 @@ imp 'SystemTimeToFileTime' SystemTimeToFileTime kernel32 0 2
|
|||
imp 'SystemTimeToTzSpecificLocalTime' SystemTimeToTzSpecificLocalTime kernel32 0
|
||||
imp 'SystemTimeToTzSpecificLocalTimeEx' SystemTimeToTzSpecificLocalTimeEx kernel32 0
|
||||
imp 'TerminateJobObject' TerminateJobObject kernel32 1426
|
||||
imp 'TerminateThread' TerminateThread kernel32 0
|
||||
imp 'TerminateThread' TerminateThread kernel32 0 2
|
||||
imp 'TermsrvAppInstallMode' TermsrvAppInstallMode kernel32 1429
|
||||
imp 'TermsrvConvertSysRootToUserDir' TermsrvConvertSysRootToUserDir kernel32 1430
|
||||
imp 'TermsrvCreateRegEntry' TermsrvCreateRegEntry kernel32 1431
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue