[asterisk-commits] russell: trunk r65991 - /trunk/doc/CODING-GUIDELINES

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 24 12:11:10 MST 2007


Author: russell
Date: Thu May 24 14:11:09 2007
New Revision: 65991

URL: http://svn.digium.com/view/asterisk?view=rev&rev=65991
Log:
add a note about using the intenal API for creating detached threads

Modified:
    trunk/doc/CODING-GUIDELINES

Modified: trunk/doc/CODING-GUIDELINES
URL: http://svn.digium.com/view/asterisk/trunk/doc/CODING-GUIDELINES?view=diff&rev=65991&r1=65990&r2=65991
==============================================================================
--- trunk/doc/CODING-GUIDELINES (original)
+++ trunk/doc/CODING-GUIDELINES Thu May 24 14:11:09 2007
@@ -68,6 +68,10 @@
   within Asterisk to enhance portability and in some cases to produce more
   secure and thread-safe code. Check utils.c/utils.h for these.
 
+- If you need to create a detached thread, use the ast_pthread_create_detached()
+  normally or ast_pthread_create_detached_background() for a thread with a smaller
+  stack size.  This reduces the replication of the code to handle the pthread_attr_t
+  structure.
 
 * Code formatting
 -----------------



More information about the asterisk-commits mailing list