about summary refs log tree commit homepage
path: root/doc.mk
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 /doc.mk
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 'doc.mk')
-rw-r--r--doc.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc.mk b/doc.mk
index 9d9af9b..2480585 100644
--- a/doc.mk
+++ b/doc.mk
@@ -1,7 +1,7 @@
 all::
 
-.ri/created.rid: mahoro.c
-        rdoc --ri -o $(@D) $<
+.ri/created.rid: mahoro.c lib/mahoro/thread_safe.rb
+        rdoc --ri -o $(@D) $^
 
 order =
 order += Mahoro
@@ -12,6 +12,7 @@ order += Mahoro\#flags=
 order += Mahoro\#valid?
 order += Mahoro\#compile
 order += Mahoro.compile
+order += Mahoro::ThreadSafe
 
 mahoro.txt: .ri/created.rid
         ( \