thread_pthread.c (gvl_release_common): constify return value

No need for it to be mutable

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-12-13 08:44:15 +00:00
Родитель 23ffadad69
Коммит 690fd7633c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -270,7 +270,7 @@ gvl_acquire(rb_vm_t *vm, rb_thread_t *th)
rb_native_mutex_unlock(&vm->gvl.lock);
}
static native_thread_data_t *
static const native_thread_data_t *
gvl_release_common(rb_vm_t *vm)
{
native_thread_data_t *next;
@ -292,7 +292,7 @@ gvl_release(rb_vm_t *vm)
static void
gvl_yield(rb_vm_t *vm, rb_thread_t *th)
{
native_thread_data_t *next;
const native_thread_data_t *next;
/*
* Perhaps other threads are stuck in blocking region w/o GVL, too,