summaryrefslogtreecommitdiff
path: root/ext/thread
AgeCommit message (Collapse)Author
2007-09-20* eval.c, intern.h, ext/thread/thread.c: should not free queue whilenobu
any live threads are waiting. [ruby-dev:30653] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-14* ext/thread/thread.c (wait_list): supress a warning.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20* ext/thread/thread.c (remove_one): Preserve List invariants;knu
submitted by: MenTaLguY <mental AT rydia.net> in [ruby-core:10598] and [ruby-bugs:PR#9388]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16* ext/thread/thread.c (unlock_mutex_inner): Make sure that theknu
given mutex is actually owned by the caller; submitted by: Sylvain Joyeux <sylvain.joyeux AT m4x.org> in [ruby-core:10598]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16* ext/thread/thread.c (wait_condvar, lock_mutex): Fix a problem inknu
ConditionVariable#wait that occurs when two threads that are trying to access the condition variable are also in concurrence for the given mutex; submitted by: Sylvain Joyeux <sylvain.joyeux AT m4x.org> and MenTaLguY <mental AT rydia.net> in [ruby-core:10598]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-03* ext/thread/thread.c (push_list): Use ALLOC().knu
* ext/thread/thread.c (rb_mutex_alloc): Ditto. * ext/thread/thread.c (rb_condvar_alloc): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26* ext/thread/thread.c (wait_list_cleanup, rb_mutex_try_lock):knu
Eliminate rb_thread_critical switching where unnecessary; implied by shugo in [ruby-dev:30412]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26Oops, apply some more hunks to complete the previous change.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26* ext/thread/thread.c (set_critical): Merge inknu
thread_exclusive_ensure(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26* ext/thread/thread.c: Consistently use 0 and 1 forknu
rb_thread_critical values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26* ext/thread/thread.c: Use xmalloc()/xfree() instead ofknu
malloc()/free(); pointed out by shugo in [ruby-dev:30412]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15* ext/thread/thread.c: Handle interrupted waits correctly.knu
[ruby-bugs:PR#8663] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10* configure.in, ext/thread/extconf.rb, lib/thread.rb: Add aknu
configure option `--disable-fastthread', to choose the original, pure ruby version of the "thread" library instead of the new, much faster implementation in ext/thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10* ext/thread/lib/thread.rb: Add a replacement of thread.rb thatknu
loads this extension. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10* ext/thread/thread.c (rb_thread_exclusive): Implementknu
Thread.exclusive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10* ext/thread/thread.c: Get rid of use of a dummy function.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10* ext/thread/thread.c (Init_thread): Define missing aliases:knu
Queue#enq and SizedQueue#enq. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09* ext/thread: Make style fixes (mostly de-K&R'ism) to match theknu
rest of the source code. * ext/thread: Make USE_MEM_POOLS an extconf option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09Oops, this is the original form. I committed the wrong file.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09* ext/thread: Import the "fastthread" implementation by MenTaLguYknu
in the original form. This module is not hooked into the build yet since it needs some style fixes and adjustments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e