mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread_(pthread|win32).h: rename rb_thread_cond_t to
rb_nativethread_cond_t. * thread.c, thread_pthread.c, thread_win32.c, vm_core.h: catch up renaming. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b2bcef7294
commit
4d3feac974
7 changed files with 40 additions and 32 deletions
|
@ -23,11 +23,11 @@ typedef struct rb_thread_cond_struct {
|
|||
#ifdef HAVE_CLOCKID_T
|
||||
clockid_t clockid;
|
||||
#endif
|
||||
} rb_thread_cond_t;
|
||||
} rb_nativethread_cond_t;
|
||||
|
||||
typedef struct native_thread_data_struct {
|
||||
void *signal_thread_list;
|
||||
rb_thread_cond_t sleep_cond;
|
||||
rb_nativethread_cond_t sleep_cond;
|
||||
} native_thread_data_t;
|
||||
|
||||
#include <semaphore.h>
|
||||
|
@ -44,11 +44,11 @@ typedef struct rb_global_vm_lock_struct {
|
|||
|
||||
/* slow path */
|
||||
volatile unsigned long waiting;
|
||||
rb_thread_cond_t cond;
|
||||
rb_nativethread_cond_t cond;
|
||||
|
||||
/* yield */
|
||||
rb_thread_cond_t switch_cond;
|
||||
rb_thread_cond_t switch_wait_cond;
|
||||
rb_nativethread_cond_t switch_cond;
|
||||
rb_nativethread_cond_t switch_wait_cond;
|
||||
int need_yield;
|
||||
int wait_yield;
|
||||
} rb_global_vm_lock_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue