Try to make the :lurking-threads test more robust.
[sbcl.git] / src / runtime / x86-win32-os.h
bloba43fcb9b1f0d381079bf8fc996b156b470122f3e
1 #ifndef _X86_WIN32_OS_H
2 #define _X86_WIN32_OS_H
4 typedef struct os_context_t {
5 CONTEXT* win32_context;
6 #if defined(LISP_FEATURE_SB_THREAD)
7 sigset_t sigmask;
8 #endif
9 } os_context_t;
11 typedef long os_context_register_t;
13 #include "arch-os-generic.inc"
15 static inline DWORD NT_GetLastError() {
16 DWORD result;
17 asm("movl %%fs:0x0D,%0":"=r"(result));
18 return result;
21 unsigned long os_context_fp_control(os_context_t *context);
22 void os_restore_fp_control(os_context_t *context);
24 os_context_register_t * os_context_fp_addr(os_context_t *context);
26 #endif /* _X86_WIN32_OS_H */