diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-10 18:05:41 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-10 18:05:41 -0800 |
commit | 56378c0fc1704cab0e0e1e6800befaf84e419b43 (patch) | |
tree | 704cce47b2012c795f36f1a1dbf66d4517c18e03 /lib | |
parent | 93e36dd664a9d3f95456769ca2d29c48503bd0e7 (diff) | |
download | ruby-tdb-56378c0fc1704cab0e0e1e6800befaf84e419b43.tar.gz |
Too tricky to support, for now.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb/mt.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/tdb/mt.rb b/lib/tdb/mt.rb index 7e7a09d..7ff2196 100644 --- a/lib/tdb/mt.rb +++ b/lib/tdb/mt.rb @@ -12,19 +12,13 @@ module TDB::MT lockall trylockall unlockall lockall_read trylockall_read unlockall_read lockall_mark lockall_unmark - clear + clear each ) wrap_methods << :repack if TDB.method_defined?(:repack) wrap_methods.each do |meth| eval "def #{meth}(*args); @lock.synchronize { super }; end" end - def each(&block) - @lock.synchronize do - super { |k,v| @lock.exclusive_unlock { yield(k,v) } } - end - end - def threadsafe? true end |