Commit graph

9 commits

Author SHA1 Message Date
knu
c31e487592 * ext/thread/thread.c: Handle interrupted waits correctly.
[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-15 01:57:03 +00:00
knu
02db1bdf77 * configure.in, ext/thread/extconf.rb, lib/thread.rb: Add a
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 21:41:26 +00:00
knu
e8b3e1af53 * ext/thread/lib/thread.rb: Add a replacement of thread.rb that
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 21:18:24 +00:00
knu
2a7ec27be2 * ext/thread/thread.c (rb_thread_exclusive): Implement
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 20:33:50 +00:00
knu
f9c378051a * ext/thread/thread.c: Get rid of use of a dummy function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 20:27:58 +00:00
knu
e366c36b6b * ext/thread/thread.c (Init_thread): Define missing aliases:
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-10 16:48:02 +00:00
knu
b28988b4f1 * ext/thread: Make style fixes (mostly de-K&R'ism) to match the
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-09 11:48:34 +00:00
knu
fff0db9dfe Oops, this is the original form. I committed the wrong file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 11:44:11 +00:00
knu
60047f3822 * ext/thread: Import the "fastthread" implementation by MenTaLguY
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
2007-02-09 11:41:49 +00:00