aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-19 00:30:43 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-19 00:30:43 +0000
commite1c6687ec5dc4c45c308627ee40e00a81c87c863 (patch)
tree43d32b5e58d5dc6a316af6a1b25188c93fcbda1e /thread_pthread.c
parentccf25a6015f94054706ecf090cb46e8ddc5a440c (diff)
downloadruby-e1c6687ec5dc4c45c308627ee40e00a81c87c863.tar.gz
thread_pthread.c (native_thread_create): remove needless attrp
Followup-to: r61719 (commit e8f40bd8f83e1b22ef9c22f0e5d7a1fc0b07f94c) ("thread_pthread: remove HAVE_PTHREAD_ATTR_INIT ifdefs") [ruby-core:84758] [Misc #14342] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index eec4bca7ca..4818f61e7a 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -957,7 +957,6 @@ native_thread_create(rb_thread_t *th)
}
else {
pthread_attr_t attr;
- pthread_attr_t *const attrp = &attr;
const size_t stack_size = th->vm->default_params.thread_machine_stack_size;
const size_t space = space_size(stack_size);
@@ -979,7 +978,7 @@ native_thread_create(rb_thread_t *th)
# endif
CHECK_ERR(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED));
- err = pthread_create(&th->thread_id, attrp, thread_start_func_1, th);
+ err = pthread_create(&th->thread_id, &attr, thread_start_func_1, th);
thread_debug("create: %p (%d)\n", (void *)th, err);
/* should be done in the created thread */
fill_thread_id_str(th);