mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread_win32.c (gvl_release, gvl_init): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
925da00b02
commit
f0445d156c
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Nov 28 14:55:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread_win32.c (gvl_release, gvl_init): suppress warnings.
|
||||
|
||||
Sun Nov 28 14:48:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread_pthread.c (gvl_release, gvl_init): suppress warnings.
|
||||
|
|
|
@ -32,6 +32,7 @@ static void native_cond_broadcast(rb_thread_cond_t *cond);
|
|||
static void native_cond_wait(rb_thread_cond_t *cond, rb_thread_lock_t *mutex);
|
||||
static void native_cond_initialize(rb_thread_cond_t *cond);
|
||||
static void native_cond_destroy(rb_thread_cond_t *cond);
|
||||
static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th);
|
||||
|
||||
static void
|
||||
w32_error(const char *func)
|
||||
|
@ -79,7 +80,7 @@ w32_mutex_lock(HANDLE lock)
|
|||
rb_bug("win32_mutex_lock: WAIT_ABANDONED");
|
||||
break;
|
||||
default:
|
||||
rb_bug("win32_mutex_lock: unknown result (%d)", result);
|
||||
rb_bug("win32_mutex_lock: unknown result (%ld)", result);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +121,6 @@ gvl_atfork(rb_vm_t *vm)
|
|||
static void
|
||||
gvl_init(rb_vm_t *vm)
|
||||
{
|
||||
int r;
|
||||
if (GVL_DEBUG) fprintf(stderr, "gvl init\n");
|
||||
vm->gvl.lock = w32_mutex_create();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue