summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-11-30 22:27:48 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-11-30 22:27:48 +0000
commitd7e2a29eb03d200764787495772cdf214114a3db (patch)
tree6cdfab60c5e8fb38da14656bea9dd1964e43b990 /threadproc
parent043388b8485c267e71628f39b2ade3e96eb2bd71 (diff)
downloadlibapr-d7e2a29eb03d200764787495772cdf214114a3db.tar.gz
Added stubs for missing APIs
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/netware/thread.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/threadproc/netware/thread.c b/threadproc/netware/thread.c
index c8d16529c..6688a2c45 100644
--- a/threadproc/netware/thread.c
+++ b/threadproc/netware/thread.c
@@ -233,15 +233,13 @@ apr_status_t apr_thread_data_set(void *data, const char *key,
}
}
-
-/*SRJ Need to resolve
- APR_DECLARE(apr_status_t) apr_os_thread_get(apr_os_thread_t **thethd,
+APR_DECLARE(apr_status_t) apr_os_thread_get(apr_os_thread_t **thethd,
apr_thread_t *thd)
{
if (thd == NULL) {
return APR_ENOTHREAD;
}
- *thethd = thd->td;
+ *thethd = &(thd->td);
return APR_SUCCESS;
}
@@ -256,8 +254,22 @@ APR_DECLARE(apr_status_t) apr_os_thread_put(apr_thread_t **thd,
(*thd) = (apr_thread_t *)apr_palloc(cont, sizeof(apr_thread_t));
(*thd)->cntxt = cont;
}
- (*thd)->td = thethd;
+ (*thd)->td = *thethd;
return APR_SUCCESS;
}
-*/ \ No newline at end of file
+APR_DECLARE(apr_status_t) apr_thread_once_init(apr_thread_once_t **control,
+ apr_pool_t *p)
+{
+ return APR_ENOTIMPL;
+}
+
+APR_DECLARE(apr_status_t) apr_thread_once(apr_thread_once_t *control,
+ void (*func)(void))
+{
+ return APR_ENOTIMPL;
+}
+
+APR_POOL_IMPLEMENT_ACCESSOR_X(thread, cntxt)
+
+