diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-14 22:24:56 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-14 22:24:56 +0000 |
commit | cfb770305876762fed3f81e3536f485c7a75f318 (patch) | |
tree | 21c165ccaf9b0e77b13e0192ae70e48b9ac81b22 /include | |
parent | d96c82b6be75f255dc4e6914c3a2e59fb35deb96 (diff) | |
download | libapr-cfb770305876762fed3f81e3536f485c7a75f318.tar.gz |
* threadproc/unix/thread.c (apr_threadattr_detach_set): Fix for Mac OS
X: pass valid arguments to pthread_attr_setdetachstate.
* include/apr_thread_proc.h: Clarify apr_threadattr_detach_{set,get}
interfaces.
PR: 28472
Submitted by: INOUE Seiichiro <inoue ariel-networks.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65199 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/apr_thread_proc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/apr_thread_proc.h b/include/apr_thread_proc.h index 558cf5001..090f6bfb1 100644 --- a/include/apr_thread_proc.h +++ b/include/apr_thread_proc.h @@ -204,14 +204,16 @@ APR_DECLARE(apr_status_t) apr_threadattr_create(apr_threadattr_t **new_attr, /** * Set if newly created threads should be created in detached state. * @param attr The threadattr to affect - * @param on Thread detach state on or off + * @param on Non-zero if detached threads should be created. */ APR_DECLARE(apr_status_t) apr_threadattr_detach_set(apr_threadattr_t *attr, - apr_int32_t on); + apr_int32_t on); /** * Get the detach state for this threadattr. - * @param attr The threadattr to reference + * @param attr The threadattr to reference + * @return APR_DETACH if threads are to be detached, or APR_NOTDETACH + * if threads are to be joinable. */ APR_DECLARE(apr_status_t) apr_threadattr_detach_get(apr_threadattr_t *attr); |