summaryrefslogtreecommitdiff
path: root/include/apr_thread_proc.h
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2019-07-03 06:55:51 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2019-07-03 06:55:51 +0000
commit3f3f3a88f222e096f34e750a99337e1c490b7e34 (patch)
tree882ac41c165898980c8705ad4a69ebc7b6a86864 /include/apr_thread_proc.h
parent6ae440b73cb0efc7be2dd47278294140c67fa59f (diff)
downloadlibapr-3f3f3a88f222e096f34e750a99337e1c490b7e34.tar.gz
API/ABI change, drop return value of apr_thread_exit() which has
no useful (nor documented) semantic: * include/apr_thread_proc.h (apr_thread_exit): Make void function; mark with gcc noreturn attribute. * threadproc/*/thread.c (apr_thread_exit): Update accordingly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1862446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_thread_proc.h')
-rw-r--r--include/apr_thread_proc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/apr_thread_proc.h b/include/apr_thread_proc.h
index 362ad2c1c..b1bd01533 100644
--- a/include/apr_thread_proc.h
+++ b/include/apr_thread_proc.h
@@ -270,12 +270,12 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new_thread,
void *data, apr_pool_t *cont);
/**
- * stop the current thread
+ * Stop the current thread
* @param thd The thread to stop
* @param retval The return value to pass back to any thread that cares
*/
-APR_DECLARE(apr_status_t) apr_thread_exit(apr_thread_t *thd,
- apr_status_t retval);
+APR_DECLARE(void) apr_thread_exit(apr_thread_t *thd, apr_status_t retval)
+ __attribute__((noreturn));
/**
* block until the desired thread stops executing.