From acd4460a6ee0f7caa1d7871acd51cdcf6bb4264c Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Wed, 9 Sep 2015 17:06:51 +0900
Subject: Update API doc

---
 doc/chopstx-api.texi | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'doc')

diff --git a/doc/chopstx-api.texi b/doc/chopstx-api.texi
index 8de6a24..6ccf6d8 100644
--- a/doc/chopstx-api.texi
+++ b/doc/chopstx-api.texi
@@ -30,7 +30,7 @@ and it runs with that priority until this routine will is called.
 
 @var{arg}: Argument to the thread entry function
 
-Create a thread.
+Create a thread.  Returns thread ID.
 @end deftypefun
 
 @subheading chopstx_usec_wait_var
@@ -199,3 +199,13 @@ No return value.  If the thread is canceled, this function
 does not return.
 @end deftypefun
 
+@subheading chopstx_setcancelstate
+@anchor{chopstx_setcancelstate}
+@deftypefun {int} {chopstx_setcancelstate} (int @var{cancel_disable})
+@var{cancel_disable}: 0 to enable cancelation, otherwise disabled.
+
+Calling chopstx_setcancelstate sets cancelability state.
+
+Returns old state which is 0 when it was enabled.
+@end deftypefun
+
-- 
cgit v1.2.3