summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-15 14:09:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-15 14:09:19 +0000
commit9dbffb49fa69da2252028c8c9fbf0f5ad8c1c320 (patch)
treed878f483a1c17b619d17071f0cb19e29df8dd4f6
parent8fd5bf07581d683b32b2d24e5deedcb7e4997bbb (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--lib/pstore.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e8091eeb04d..ef2a8a97107 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/lib/pstore.rb b/lib/pstore.rb
index 0d635c4ac2a..65cce7b238f 100644
--- a/lib/pstore.rb
+++ b/lib/pstore.rb
@@ -131,6 +131,7 @@ class PStore
@filename = file
@abort = false
@ultra_safe = false
+ @thread_safe = thread_safe
if @thread_safe
@lock = Mutex.new
else