about summary refs log tree commit homepage
path: root/lib/tdb.rb
blob: 47cb54cae74a28c1b913b7da383690e22b060df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- encoding: binary -*-
require 'tdb_ext'
class TDB
  autoload :MT, 'tdb/mt'

  # makes the current TDB object thread-safe (DANGEROUS)
  # Do not use this method yet, it has problems
  def threadsafe!
    extend MT
  end

  # will return true when TDB::MT is included in TDB or the TDB
  # object is extended by TDB
  def threadsafe?
    false
  end
end