knu
e6e0e815ab
* ext/thread/thread.c (push_list): Use ALLOC().
...
* 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-03-03 10:06:33 +00:00
knu
e9ebc1c8db
* ext/thread/thread.c (wait_list_cleanup, rb_mutex_try_lock):
...
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-26 19:03:21 +00:00
knu
5386d05fb2
Oops, apply some more hunks to complete the previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26 18:53:44 +00:00
knu
25f8c4c391
* ext/thread/thread.c (set_critical): Merge in
...
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 18:50:51 +00:00
knu
3bcf72a28c
* ext/thread/thread.c: Consistently use 0 and 1 for
...
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 18:41:08 +00:00
knu
e529cb40d0
* ext/thread/thread.c: Use xmalloc()/xfree() instead of
...
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-26 06:22:08 +00:00
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
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