зеркало из https://github.com/github/ruby.git
* 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:
Родитель
8fd5bf0758
Коммит
9dbffb49fa
|
@ -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>
|
||||
|
||||
* st.c (st_foreach): don't access ptr->hash after func call.
|
||||
|
|
|
@ -131,6 +131,7 @@ class PStore
|
|||
@filename = file
|
||||
@abort = false
|
||||
@ultra_safe = false
|
||||
@thread_safe = thread_safe
|
||||
if @thread_safe
|
||||
@lock = Mutex.new
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче