1 #ifndef RUBY_THREAD_WIN32_H
2 #define RUBY_THREAD_WIN32_H
19 #define USE_VM_CLOCK 1
21 WINBASEAPI BOOL WINAPI
22 TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
26 HANDLE interrupt_event;
37 typedef DWORD native_tls_key_t;
40 native_tls_get(native_tls_key_t key)
43 return TlsGetValue(key);
47 native_tls_set(native_tls_key_t key,
void *
ptr)
49 if (UNLIKELY(TlsSetValue(key,
ptr) == 0)) {
50 rb_bug(
"TlsSetValue() error");
54 RUBY_SYMBOL_EXPORT_BEGIN
56 RUBY_SYMBOL_EXPORT_END
#define RUBY_EXTERN
Declaration of externally visible global variables.
void rb_bug(const char *fmt,...)
Interpreter panic switch.
char * ptr
Pointer to the underlying memory region, of at least capa bytes.