summaryrefslogtreecommitdiff
path: root/README.ja.md
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-18 07:54:10 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-18 07:54:10 +0000
commit4a57b88b191259d152b53b7d7f6f5d703ae1dbe2 (patch)
tree51cb451d920d1c847991e32569c70f72b8441da5 /README.ja.md
parentf3cc10b63da840acde0ef7c5843e3ee206a274fa (diff)
thread_pthread.c: shorten and fix thread cache implementation
Update to use ccan/list for constant-time delete on expiry and avoid malloc. We must also initialize th->thread_id upon thread reuse so Thread#name= works immediately upon thread creation. We must also reinitialize the cache mutex and list_head on fork like we do with GVL and timer thread mutexes. While we're at it, use monotonic clock for timeout to avoid system time changes. "make exam TESTS='-x test_time_tz'" passes with USE_THREAD_CACHE enabled (but remains off, here). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.ja.md')
0 files changed, 0 insertions, 0 deletions