summaryrefslogtreecommitdiff
path: root/include/apr_portable.h
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2001-07-07 06:34:58 +0000
committerDavid Reid <dreid@apache.org>2001-07-07 06:34:58 +0000
commita5172cc905100933e2906f5f55b8d31e537ecff2 (patch)
tree0e39c3183a21db58b8ec0e5d6a94540187d64945 /include/apr_portable.h
parentb537ccb8eeb4dece1f7672a8170c446d0b4394fc (diff)
downloadapr-a5172cc905100933e2906f5f55b8d31e537ecff2.tar.gz
Add some documentation for the os_thread functions recently added
and fix the #ifdef's around them. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_portable.h')
-rw-r--r--include/apr_portable.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/apr_portable.h b/include/apr_portable.h
index 06ff8f360..0022ad7ee 100644
--- a/include/apr_portable.h
+++ b/include/apr_portable.h
@@ -409,12 +409,23 @@ APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **dso,
APR_DECLARE(apr_status_t) apr_os_dso_handle_get(apr_os_dso_handle_t *dso,
apr_dso_handle_t *aprdso);
+#endif /* APR_HAS_DSO */
+
#if APR_HAS_THREADS
+/**
+ * Get the thread ID
+ */
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
-#endif /* APR_HAS_DSO */
+/**
+ * Compare two thread id's
+ * @param tid1 1st Thread ID to compare
+ * @param tid2 2nd Thread ID to compare
+ */
+APR_DECLARE(int) apr_os_thread_equal(apr_os_thread_t tid1,
+ apr_os_thread_t tid2);
+#endif /* APR_HAS_THREADS */
+
#ifdef __cplusplus
}