From 7f87cbc2e5289f328c3278a991519068d8747374 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 5 Apr 2013 21:21:19 +0000 Subject: add optional thread-safety module This can make Mahoro easier-to-use in multi-threaded apps where magic concurrency is not required. For real concurrency, it is recommended users create per-thread Mahoro objects. --- mahoro.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mahoro.c') diff --git a/mahoro.c b/mahoro.c index a30946c..01d1cf8 100644 --- a/mahoro.c +++ b/mahoro.c @@ -384,6 +384,9 @@ void Init_mahoro(void) * str = File.read('/path/to/file.c') * mahoro_obj.buffer(str) -> 'ASCII C program text' * + * Mahoro is not thread-safe by default, see Mahoro::ThreadSafe for + * making this module thread-safe. + * * More information about libmagic: * https://en.wikipedia.org/wiki/Libmagic * -- cgit v1.2.3-24-ge0c7