]> granicus.if.org Git - gc/commitdiff
Document GC_register_my_thread returned value
authorIvan Maidanski <ivmai@mail.ru>
Wed, 11 Nov 2015 08:20:21 +0000 (11:20 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 11 Nov 2015 08:20:21 +0000 (11:20 +0300)
* include/gc.h (GC_register_my_thread): Refine comment (about returned
value).

include/gc.h

index 1bba755913887bc9753a8e589902e424a27e09a2..7cf932034f6090038d7629c53b1c6d33ad645a4a 100644 (file)
@@ -1397,6 +1397,7 @@ GC_API void * GC_CALL GC_call_with_stack_base(GC_stack_base_func /* fn */,
   /* latter case, the explicit call is normally required for threads    */
   /* created by third-party libraries.                                  */
   /* A manually registered thread requires manual unregistering.        */
+  /* Returns GC_SUCCESS on success, GC_DUPLICATE if already registered. */
   GC_API int GC_CALL GC_register_my_thread(const struct GC_stack_base *)
                                                         GC_ATTR_NONNULL(1);