summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--thread_pthread.c5
-rw-r--r--thread_win32.c2
3 files changed, 6 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 40b13faeeb..16f7bce67f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu May 5 22:23:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * thread_pthread.c (native_mutex_reinitialize_atfork): removed
+ unused macro.
+ * thread_win32.c (native_mutex_reinitialize_atfork): ditto.
+
Thu May 5 22:09:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not
diff --git a/thread_pthread.c b/thread_pthread.c
index 4161f663db..f503c29323 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -29,11 +29,6 @@ static void native_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
static void native_cond_initialize(pthread_cond_t *cond);
static void native_cond_destroy(pthread_cond_t *cond);
-#define native_mutex_reinitialize_atfork(lock) (\
- native_mutex_unlock(lock), \
- native_mutex_initialize(lock), \
- native_mutex_lock(lock))
-
#define GVL_SIMPLE_LOCK 0
#define GVL_DEBUG 0
diff --git a/thread_win32.c b/thread_win32.c
index e29c6aff8e..16f9cb9fbf 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -379,8 +379,6 @@ native_mutex_initialize(rb_thread_lock_t *lock)
#endif
}
-#define native_mutex_reinitialize_atfork(lock) (void)(lock)
-
static void
native_mutex_destroy(rb_thread_lock_t *lock)
{