diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/pstore.rb | 1 |
2 files changed, 6 insertions, 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> * st.c (st_foreach): don't access ptr->hash after func call. diff --git a/lib/pstore.rb b/lib/pstore.rb index 0d635c4ac2..65cce7b238 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 |