diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-24 19:11:09 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-24 19:11:09 +0000 |
commit | ed238ab53240f118abeee6ade825afc5c7afb5b5 (patch) | |
tree | 7a3d503095fd4772b5fddbaeec06d185599c835a /doc | |
parent | 44b8a8d2e6555039c431b170900264059fd044ff (diff) |
add a note about using the intenal API for creating detached threads
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65991 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CODING-GUIDELINES | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/CODING-GUIDELINES b/doc/CODING-GUIDELINES index 9c2942b7b..ce6b80ea5 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 ----------------- |