summaryrefslogtreecommitdiff
path: root/include/apr_portable.h
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2001-07-07 06:42:23 +0000
committerDavid Reid <dreid@apache.org>2001-07-07 06:42:23 +0000
commitf6dde594569a9b948fe90c0d0b7bd9fcba54a781 (patch)
tree933c425942ee9a24e5768308f8192d82bcac2c59 /include/apr_portable.h
parenta5172cc905100933e2906f5f55b8d31e537ecff2 (diff)
downloadapr-f6dde594569a9b948fe90c0d0b7bd9fcba54a781.tar.gz
Move the thread registration functions from the apr_sms header into
the portable header as this seems a more logical place for them given they use apr_os_thread_t. This also simplify's the build process ordering in certain situations. BTW, do we still need to add the @deffunc lines as we don't seem to have been doing in some places. Is this a scandoc change Ben? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61881 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_portable.h')
-rw-r--r--include/apr_portable.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/apr_portable.h b/include/apr_portable.h
index 0022ad7ee..94d4c93dc 100644
--- a/include/apr_portable.h
+++ b/include/apr_portable.h
@@ -424,8 +424,24 @@ APR_DECLARE(apr_os_thread_t) apr_os_thread_current(void);
*/
APR_DECLARE(int) apr_os_thread_equal(apr_os_thread_t tid1,
apr_os_thread_t tid2);
-#endif /* APR_HAS_THREADS */
+/**
+ * Register the specified thread with an sms
+ * @param sms The SMS to register with
+ * @param thread The thread to register
+ */
+APR_DECLARE(apr_status_t) apr_sms_thread_register(apr_sms_t *sms,
+ apr_os_thread_t thread);
+
+/**
+ * Unregister a thread from an sms
+ * @param sms The sms to unregister from
+ * @param thread The thread to be unregistered
+ */
+APR_DECLARE(apr_status_t) apr_sms_thread_unregister(apr_sms_t *sms,
+ apr_os_thread_t thread);
+
+#endif /* APR_HAS_THREADS */
#ifdef __cplusplus
}