mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
supress warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3765f668c6
commit
70d603a412
1 changed files with 2 additions and 2 deletions
4
thread.c
4
thread.c
|
@ -4202,7 +4202,7 @@ rb_mutex_lock(VALUE self)
|
||||||
while (mutex->th != th) {
|
while (mutex->th != th) {
|
||||||
int interrupted;
|
int interrupted;
|
||||||
enum rb_thread_status prev_status = th->status;
|
enum rb_thread_status prev_status = th->status;
|
||||||
int timeout_ms = 0;
|
volatile int timeout_ms = 0;
|
||||||
struct rb_unblock_callback oldubf;
|
struct rb_unblock_callback oldubf;
|
||||||
|
|
||||||
set_unblock_function(th, lock_interrupt, mutex, &oldubf, FALSE);
|
set_unblock_function(th, lock_interrupt, mutex, &oldubf, FALSE);
|
||||||
|
@ -4223,7 +4223,7 @@ rb_mutex_lock(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
GVL_UNLOCK_BEGIN();
|
GVL_UNLOCK_BEGIN();
|
||||||
interrupted = lock_func(th, mutex, timeout_ms);
|
interrupted = lock_func(th, mutex, (int)timeout_ms);
|
||||||
native_mutex_unlock(&mutex->lock);
|
native_mutex_unlock(&mutex->lock);
|
||||||
GVL_UNLOCK_END();
|
GVL_UNLOCK_END();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue