about summary refs log tree commit homepage
path: root/mahoro.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-05 21:21:19 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-05 22:30:36 +0000
commit7f87cbc2e5289f328c3278a991519068d8747374 (patch)
treebcc48402f5231c4f03b6916affe9c0e0c3c95c20 /mahoro.c
parent803b2c842701ca74d504b61e8d35fd801e00c614 (diff)
downloadmahoro-7f87cbc2e5289f328c3278a991519068d8747374.tar.gz
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.
Diffstat (limited to 'mahoro.c')
-rw-r--r--mahoro.c3
1 files changed, 3 insertions, 0 deletions
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
          *