2006-12-31 18:02:22 +03:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
thread_win32.h -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
|
* blockinlining.c, compile.c, compile.h, debug.c, debug.h,
id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci,
thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h,
vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and
copyright year.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-14 01:13:04 +03:00
|
|
|
Copyright (C) 2004-2007 Koichi Sasada
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
/* interface */
|
2007-02-07 17:25:03 +03:00
|
|
|
#ifndef RUBY_THREAD_WIN32_H
|
|
|
|
#define RUBY_THREAD_WIN32_H
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
2007-02-07 17:25:03 +03:00
|
|
|
# ifdef __CYGWIN__
|
|
|
|
# undef _WIN32
|
|
|
|
# endif
|
|
|
|
|
2006-12-31 18:02:22 +03:00
|
|
|
WINBASEAPI BOOL WINAPI
|
|
|
|
TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
|
|
|
|
|
* blockinlining.c, compile.c, compile.h, error.c, eval.c,
eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
* yarv_*_t -> rb_*_t
* yarv_*_struct -> rb_*_struct
* yarv_tag -> rb_vm_tag
* YARV_* -> RUBY_VM_*
* proc.c, vm.c: move functions about env object creation
from proc.c to vm.c.
* proc.c, yarvcore.c: fix rb_cVM initialization place.
* inits.c: change Init_ISeq() order (after Init_VM).
* ruby.h, proc.c: change declaration place of rb_cEnv
from proc.c to ruby.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 22:00:03 +03:00
|
|
|
typedef HANDLE rb_thread_id_t;
|
|
|
|
typedef CRITICAL_SECTION rb_thread_lock_t;
|
2010-11-27 23:15:59 +03:00
|
|
|
typedef struct rb_thread_cond_struct {
|
|
|
|
struct cond_event_entry *next;
|
2011-05-07 10:17:59 +04:00
|
|
|
struct cond_event_entry *prev;
|
2010-11-27 23:15:59 +03:00
|
|
|
} rb_thread_cond_t;
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
typedef struct native_thread_data_struct {
|
|
|
|
HANDLE interrupt_event;
|
|
|
|
} native_thread_data_t;
|
|
|
|
|
2010-11-27 23:15:59 +03:00
|
|
|
typedef struct rb_global_vm_lock_struct {
|
|
|
|
HANDLE lock;
|
|
|
|
} rb_global_vm_lock_t;
|
|
|
|
|
2007-02-07 17:25:03 +03:00
|
|
|
#endif /* RUBY_THREAD_WIN32_H */
|
2006-12-31 18:02:22 +03:00
|
|
|
|