mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/pstore.rb (PStore#initialize): initialize @thread_safe.
[ruby-core:27853] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8fd5bf0758
commit
9dbffb49fa
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Feb 15 23:08:56 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/pstore.rb (PStore#initialize): initialize @thread_safe.
|
||||||
|
[ruby-core:27853]
|
||||||
|
|
||||||
Mon Feb 15 22:45:26 2010 Tanaka Akira <akr@fsij.org>
|
Mon Feb 15 22:45:26 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* st.c (st_foreach): don't access ptr->hash after func call.
|
* st.c (st_foreach): don't access ptr->hash after func call.
|
||||||
|
|
|
@ -131,6 +131,7 @@ class PStore
|
||||||
@filename = file
|
@filename = file
|
||||||
@abort = false
|
@abort = false
|
||||||
@ultra_safe = false
|
@ultra_safe = false
|
||||||
|
@thread_safe = thread_safe
|
||||||
if @thread_safe
|
if @thread_safe
|
||||||
@lock = Mutex.new
|
@lock = Mutex.new
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue