From 91774f18ae0bb044c24d75d275ccb90b1bd80ad0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 3 Dec 2010 17:45:45 -0800 Subject: README: update with thread-safety usage One limitation that's easy to work around, for now. --- README | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README b/README index 7d3e408..6ac2c5e 100644 --- a/README +++ b/README @@ -25,8 +25,10 @@ write to the same databases used by Samba! These caveats will be addressed upstream in {TDB2}[http://mid.gmane.org/201008021002.47351.rusty@rustcorp.com.au] -* NOT native thread-safe, you MUST protect your TDB object with a Mutex - if you run it with threads under Ruby 1.9 (but not 1.8). +* NOT native thread-safe by default, you MUST initialize your TDB + objects with :threadsafe => true or call + TDB#threadsafe! on each TDB object if you run with threads + under Ruby 1.9 (but not 1.8). * Database size is limited to 4G, even on 64-bit systems. -- cgit v1.2.3-24-ge0c7