aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-16 19:52:54 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-16 19:52:54 +0000
commit772a2811923e1634ff7c157abdc9b41740659af6 (patch)
treeb9dd4e84c6e0b5059dacb566073b00c688dcd03d
parentf45d127ada4fd0f3d64788c13d5f3e0b27ba7062 (diff)
downloadruby-772a2811923e1634ff7c157abdc9b41740659af6.tar.gz
* thread_pthread.c, thread_pthread.h: remove unused variables.
(native_thread_data_t::gvl_cond, native_thread_data_t::gvl_next) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--thread_pthread.c2
-rw-r--r--thread_pthread.h2
3 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 47d05f8ce4..86f36ce5c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 17 04:48:22 2011 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.c, thread_pthread.h: remove unused variables.
+ (native_thread_data_t::gvl_cond, native_thread_data_t::gvl_next)
+
Thu Jun 16 14:32:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
* time.c (rb_time_new): prevent overflow by "* 1000".
diff --git a/thread_pthread.c b/thread_pthread.c
index 496600e478..ff9de86379 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -422,14 +422,12 @@ static void
native_thread_init(rb_thread_t *th)
{
native_cond_initialize(&th->native_thread_data.sleep_cond, RB_CONDATTR_CLOCK_MONOTONIC);
- native_cond_initialize(&th->native_thread_data.gvl_cond, 0);
ruby_thread_set_native(th);
}
static void
native_thread_destroy(rb_thread_t *th)
{
- native_cond_destroy(&th->native_thread_data.gvl_cond);
native_cond_destroy(&th->native_thread_data.sleep_cond);
}
diff --git a/thread_pthread.h b/thread_pthread.h
index 3167efc050..e693fba299 100644
--- a/thread_pthread.h
+++ b/thread_pthread.h
@@ -28,8 +28,6 @@ typedef struct rb_thread_cond_struct {
typedef struct native_thread_data_struct {
void *signal_thread_list;
rb_thread_cond_t sleep_cond;
- rb_thread_cond_t gvl_cond;
- struct rb_thread_struct *gvl_next;
} native_thread_data_t;
#include <semaphore.h>