Sha256: e58feb9c16f78255cf80a2af8df525e7598bcaa7b1ffc8b6fea254bc2741d331

Contents?: true

Size: 929 Bytes

Versions: 10

Compression:

Stored size: 929 Bytes

Contents

/**********************************************************************

  thread_win32.h -

  $Author$

  Copyright (C) 2004-2007 Koichi Sasada

**********************************************************************/

/* interface */
#ifndef RUBY_THREAD_WIN32_H
#define RUBY_THREAD_WIN32_H

#include <windows.h>

# ifdef __CYGWIN__
# undef _WIN32
# endif

WINBASEAPI BOOL WINAPI
TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);

typedef HANDLE rb_thread_id_t;

typedef union rb_thread_lock_union {
    HANDLE mutex;
    CRITICAL_SECTION crit;
} rb_thread_lock_t;

typedef struct rb_thread_cond_struct {
    struct cond_event_entry *next;
    struct cond_event_entry *prev;
} rb_thread_cond_t;

typedef struct native_thread_data_struct {
    HANDLE interrupt_event;
} native_thread_data_t;

typedef struct rb_global_vm_lock_struct {
    HANDLE lock;
} rb_global_vm_lock_t;

#endif /* RUBY_THREAD_WIN32_H */

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
bindex-0.2.0 ext/bindex/ruby_20/thread_win32.h
bindex-0.1.1 ext/bindex/ruby_20/thread_win32.h
bindex-0.1.0 ext/bindex/ruby_20/thread_win32.h
did_you_mean-0.9.2 ext/did_you_mean/ruby_headers/200/thread_win32.h
did_you_mean-0.9.0 ext/did_you_mean/ruby_headers/200/thread_win32.h
did_you_mean-0.5.0 ext/did_you_mean/ruby_headers/200/thread_win32.h
did_you_mean-0.4.0 ext/did_you_mean/ruby_headers/200/thread_win32.h
did_you_mean-0.3.1 ext/did_you_mean/ruby_headers/200/thread_win32.h
did_you_mean-0.3.0 ext/did_you_mean/ruby_headers/200/thread_win32.h
did_you_mean-0.2.0 ext/did_you_mean/ruby_headers/200/thread_win32.h