* thread_win32.[ch]: moved definitions of cond_every_entry and
rb_thread_cond_struct from .c to .h because rb_thread_cond_struct is used in vm_core.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
99c8c71243
commit
9b3aade1b6
@ -1,3 +1,9 @@
|
|||||||
|
Mon Jul 28 16:01:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* thread_win32.[ch]: moved definitions of cond_every_entry and
|
||||||
|
rb_thread_cond_struct from .c to .h because rb_thread_cond_struct
|
||||||
|
is used in vm_core.h.
|
||||||
|
|
||||||
Mon Jul 28 14:29:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Jul 28 14:29:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* dln.c (load_lib): use dln_find_file_r instead of dln_find_file.
|
* dln.c (load_lib): use dln_find_file_r instead of dln_find_file.
|
||||||
|
@ -333,16 +333,6 @@ native_mutex_destroy(rb_thread_lock_t *lock)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
struct cond_event_entry {
|
|
||||||
struct cond_event_entry* next;
|
|
||||||
HANDLE event;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct rb_thread_cond_struct {
|
|
||||||
struct cond_event_entry *next;
|
|
||||||
struct cond_event_entry *last;
|
|
||||||
};
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
native_cond_signal(rb_thread_cond_t *cond)
|
native_cond_signal(rb_thread_cond_t *cond)
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,16 @@ typedef HANDLE rb_thread_id_t;
|
|||||||
typedef CRITICAL_SECTION rb_thread_lock_t;
|
typedef CRITICAL_SECTION rb_thread_lock_t;
|
||||||
typedef struct rb_thread_cond_struct rb_thread_cond_t;
|
typedef struct rb_thread_cond_struct rb_thread_cond_t;
|
||||||
|
|
||||||
|
struct cond_event_entry {
|
||||||
|
struct cond_event_entry* next;
|
||||||
|
HANDLE event;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct rb_thread_cond_struct {
|
||||||
|
struct cond_event_entry *next;
|
||||||
|
struct cond_event_entry *last;
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct native_thread_data_struct {
|
typedef struct native_thread_data_struct {
|
||||||
HANDLE interrupt_event;
|
HANDLE interrupt_event;
|
||||||
} native_thread_data_t;
|
} native_thread_data_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user