bnicholes 01/11/30 14:27:48
Modified: threadproc/netware thread.c
Log:
Added stubs for missing APIs
Revision Changes Path
1.7 +18 -6 apr/threadproc/netware/thread.c
Index: thread.c
===================================================================
RCS file: /home/cvs/apr/threadproc/netware/thread.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- thread.c 2001/10/05 16:57:40 1.6
+++ thread.c 2001/11/30 22:27:48 1.7
@@ -233,15 +233,13 @@
}
}
-
-/*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 @@
(*thd) = (apr_thread_t *)apr_palloc(cont, sizeof(apr_thread_t));
(*thd)->cntxt = cont;
}
- (*thd)->td = thethd;
+ (*thd)->td = *thethd;
return APR_SUCCESS;
}
+
+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)
+
-*/
\ No newline at end of file