mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Overhaul Windows signal handling
The new asynchronous signal delivery technique is now also being used for tkill(), raise(), etc. Many subtle issues have been addresesd. We now signal handling on Windows that's remarkably similar to the POSIX behaviors. However that's just across threads. We're lacking a way to have the signal semantics work well, across multiple WIN32 processes.
This commit is contained in:
parent
8bdaddd81d
commit
99dc1281f5
38 changed files with 635 additions and 279 deletions
|
@ -64,6 +64,7 @@ void *TlsGetValue(uint32_t);
|
|||
uint32_t SuspendThread(int64_t hThread);
|
||||
uint32_t ResumeThread(int64_t hThread);
|
||||
bool32 GetThreadContext(int64_t hThread, struct NtContext *in_out_lpContext);
|
||||
bool32 SetThreadContext(int64_t hThread, const struct NtContext *lpContext);
|
||||
|
||||
#if ShouldUseMsabiAttribute()
|
||||
#include "libc/nt/thunk/thread.inc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue