diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-17 08:38:00 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-17 08:39:37 +0000 |
commit | 0fe8e10bc5e4c107311fda1fc9f175a39e27160e (patch) | |
tree | 37a8d67a1f0ef9255555039edf6eff4580581ee7 /lib | |
parent | 3107a78110309a203b0c2ef7cc4cd9d18d294a46 (diff) | |
download | ruby-tdb-0fe8e10bc5e4c107311fda1fc9f175a39e27160e.tar.gz |
Lets just avoid threads for now :) The torture test still fails and there doesn't appear to be a good way to fix it without upstream supporting it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb.rb | 3 | ||||
-rw-r--r-- | lib/tdb/mt.rb | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -3,7 +3,8 @@ require 'tdb_ext' class TDB autoload :MT, 'tdb/mt' - # makes the current TDB object thread-safe + # makes the current TDB object thread-safe (DANGEROUS) + # Do not use this method yet, it has problems def threadsafe! extend MT end diff --git a/lib/tdb/mt.rb b/lib/tdb/mt.rb index 7ff2196..4cea5f5 100644 --- a/lib/tdb/mt.rb +++ b/lib/tdb/mt.rb @@ -1,4 +1,6 @@ # -*- encoding: binary -*- + +# WARNING: this is not recommended, it is still possible to break this module TDB::MT def initialize super |