From 9dbffb49fa69da2252028c8c9fbf0f5ad8c1c320 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 15 Feb 2010 14:09:19 +0000 Subject: * 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 --- ChangeLog | 5 +++++ lib/pstore.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index e8091eeb04..ef2a8a9710 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 15 23:08:56 2010 Tanaka Akira + + * lib/pstore.rb (PStore#initialize): initialize @thread_safe. + [ruby-core:27853] + Mon Feb 15 22:45:26 2010 Tanaka Akira * 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 -- cgit v1.2.3