aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-13 08:44:15 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-13 08:44:15 +0000
commit690fd7633cf2c8b655e0522d1ccf78924b6f74d5 (patch)
tree04f56e7e74fcab67cddf25ff04d4c1c90249cac5 /thread_pthread.c
parent23ffadad69ac72138afb828caf03082af17059c3 (diff)
downloadruby-690fd7633cf2c8b655e0522d1ccf78924b6f74d5.tar.gz
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index c87e952750..04e938e647 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -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,