From: Russell Bryant Date: Thu, 24 May 2007 19:11:09 +0000 (+0000) Subject: add a note about using the intenal API for creating detached threads X-Git-Tag: 1.6.0-beta1~3^2~2583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45cf4d0fb2df440275420f3d08210848cafdf0e;p=thirdparty%2Fasterisk.git add a note about using the intenal API for creating detached threads git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65991 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/doc/CODING-GUIDELINES b/doc/CODING-GUIDELINES index 9c2942b7b3..ce6b80ea52 100644 --- a/doc/CODING-GUIDELINES +++ b/doc/CODING-GUIDELINES @@ -68,6 +68,10 @@ can list them in the "svn diff" command: 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 -----------------