diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-10 06:53:39 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-10 06:53:39 +0000 |
| commit | c2b3083f6ef9a8948b783a2149301c197bdac631 (patch) | |
| tree | 37e2c1ab2fd866613fbca6c14b0ea814dbcb262d | |
| parent | fec442d641a00401fd4525586504758137798796 (diff) | |
| download | ruby-c2b3083f6ef9a8948b783a2149301c197bdac631.tar.gz ruby-c2b3083f6ef9a8948b783a2149301c197bdac631.tar.xz ruby-c2b3083f6ef9a8948b783a2149301c197bdac631.zip | |
* thread_pthread.ci (native_thread_create): initialize sleep_cond.
fixed: [ruby-dev:30675]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | thread_pthread.ci | 5 | ||||
| -rw-r--r-- | version.h | 6 |
3 files changed, 12 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Tue Apr 10 15:53:17 2007 NAKAMURA Usaku <usa@ruby-lang.org> + + * thread_pthread.ci (native_thread_create): initialize sleep_cond. + fixed: [ruby-dev:30675] + Mon Apr 9 18:48:57 2007 NAKAMURA Usaku <usa@ruby-lang.org> * thread.c (do_select): ubf_select() is not necessary. interrupt is diff --git a/thread_pthread.ci b/thread_pthread.ci index 595bb8e8f..34bb5362b 100644 --- a/thread_pthread.ci +++ b/thread_pthread.ci @@ -247,7 +247,10 @@ native_thread_create(rb_thread_t *th) thread_debug("create: %p (%d)", th, err); CHECK_ERR(pthread_attr_destroy(&attr)); - if (err != 0) { + if (!err) { + pthread_cond_init(&th->native_thread_data.sleep_cond, 0); + } + else { st_delete_wrap(th->vm->living_threads, th->self); th->status = THREAD_KILLED; rb_raise(rb_eThreadError, "can't create Thread (%d)", err); @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-04-09" +#define RUBY_RELEASE_DATE "2007-04-10" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070409 +#define RUBY_RELEASE_CODE 20070410 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 4 -#define RUBY_RELEASE_DAY 9 +#define RUBY_RELEASE_DAY 10 RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_release_date[]; |
