diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-17 02:33:00 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-17 02:33:00 +0000 |
commit | bb502e592acc6475053c4defbaf96f824a539f58 (patch) | |
tree | 5e408f0b3a94270822df34f76b6eb25c9448ea4c /threadproc | |
parent | 568d38d04ae8058c1b26734b0ea073760b46bc98 (diff) | |
download | libapr-bb502e592acc6475053c4defbaf96f824a539f58.tar.gz |
Get exports.c symbols to compile even if the declaration is hidden in
APR include file.
Implement all exports.c symbols even if the package or function isn't
available in the current configuration.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60748 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r-- | threadproc/unix/thread.c | 93 | ||||
-rw-r--r-- | threadproc/unix/threadpriv.c | 9 |
2 files changed, 102 insertions, 0 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c index 5f47c5f39..896df2543 100644 --- a/threadproc/unix/thread.c +++ b/threadproc/unix/thread.c @@ -233,3 +233,96 @@ apr_status_t apr_put_os_thread(apr_thread_t **thd, apr_os_thread_t *thethd, #endif /* HAVE_PTHREAD_H */ #endif /* APR_HAS_THREADS */ +#if !APR_HAS_THREADS + +apr_status_t apr_create_thread(apr_thread_t **new_thread, apr_threadattr_t *attr, + apr_thread_start_t func, void *data, + apr_pool_t *cont) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_create_threadattr(apr_threadattr_t **new, apr_pool_t *cont) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_create_thread_private(apr_threadkey_t **key, void (*dest)(void *), + apr_pool_t *cont) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_delete_thread_private(apr_threadkey_t *key) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_get_os_thread(void); /* avoid warning for no prototype */ + +apr_status_t apr_get_os_thread(void) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_getthreadattr_detach(apr_threadattr_t *attr) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_get_threaddata(void **data, const char *key, apr_thread_t *thread) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_get_threadkeydata(void **data, const char *key, + apr_threadkey_t *threadkey) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_get_thread_private(void **new_mem, apr_threadkey_t *key) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_setthreadattr_detach(apr_threadattr_t *attr, apr_int32_t on) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_set_threaddata(void *data, const char *key, + apr_status_t (*cleanup)(void *), + apr_thread_t *thread) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_set_threadkeydata(void *data, const char *key, + apr_status_t (*cleanup) (void *), + apr_threadkey_t *threadkey) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_set_thread_private(void *priv, apr_threadkey_t *key) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_thread_detach(apr_thread_t *thd) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_thread_exit(apr_thread_t *thd, apr_status_t *retval) +{ + return APR_ENOTIMPL; +} + +apr_status_t apr_thread_join(apr_status_t *retval, apr_thread_t *thd) +{ + return APR_ENOTIMPL; +} + +#endif diff --git a/threadproc/unix/threadpriv.c b/threadproc/unix/threadpriv.c index 9fc5588c5..cb7a995fb 100644 --- a/threadproc/unix/threadpriv.c +++ b/threadproc/unix/threadpriv.c @@ -144,3 +144,12 @@ apr_status_t apr_put_os_threadkey(apr_threadkey_t **key, } #endif /* APR_HAVE_PTHREAD_H */ #endif /* APR_HAS_THREADS */ + +#if !APR_HAS_THREADS +apr_status_t apr_get_os_threadkey(void); /* avoid warning for no prototype */ + +apr_status_t apr_get_os_threadkey(void) +{ + return APR_ENOTIMPL; +} +#endif |