summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-07 13:47:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-07 13:47:11 +0000
commitb81ccf31677b956445171f79bf1114fefdc4e6ba (patch)
treebc2d2fc73cb83b43e53083fa6aa4b9febf912640
parent3899005d2ed7fc902df10e083f75d9f28a3d85eb (diff)
* thread_pthread.c (thread_timer): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog2
-rw-r--r--thread_pthread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 96bc5bc74d..bcf01ba675 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-Fri Nov 7 22:42:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Nov 7 22:46:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread_pthread.c (thread_timer): initializes mutex each time.
diff --git a/thread_pthread.c b/thread_pthread.c
index c49efb3388..9456f4992f 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -671,7 +671,7 @@ thread_timer(void *dummy)
struct timespec ts;
pthread_mutex_t lock;
- pthread_mutex_initializer(&lock, 0);
+ pthread_mutex_init(&lock, 0);
pthread_mutex_lock(&lock);
#define WAIT_FOR_10MS() (pthread_cond_timedwait(&timer_thread_cond, &lock, get_ts(&ts, PER_NANO/100)) == ETIMEDOUT)
while (WAIT_FOR_10MS()) {