diff options
author | dougm <dougm@13f79535-47bb-0310-9956-ffa450edef68> | 2000-08-02 05:26:45 +0000 |
---|---|---|
committer | dougm <dougm@13f79535-47bb-0310-9956-ffa450edef68> | 2000-08-02 05:26:45 +0000 |
commit | 8fcf6e0fadd7ec31d02e7249dc69922b24747c11 (patch) | |
tree | 4da0bfd73d36292921960aaabc877a57e680b8c4 /threadproc/win32/threadpriv.c | |
parent | 5198c260c1982414023e984799ce1c3b04bb6b43 (diff) | |
download | libapr-8fcf6e0fadd7ec31d02e7249dc69922b24747c11.tar.gz |
prefix libapr functions and types with apr_
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32/threadpriv.c')
-rw-r--r-- | threadproc/win32/threadpriv.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/threadproc/win32/threadpriv.c b/threadproc/win32/threadpriv.c index 275326cf5..f7fca12f0 100644 --- a/threadproc/win32/threadpriv.c +++ b/threadproc/win32/threadpriv.c @@ -59,8 +59,8 @@ #include "apr_errno.h" #include "apr_portable.h" -ap_status_t ap_create_thread_private(ap_threadkey_t **key, - void (*dest)(void *), ap_pool_t *cont) +apr_status_t apr_create_thread_private(apr_threadkey_t **key, + void (*dest)(void *), apr_pool_t *cont) { if (((*key)->key = TlsAlloc()) != 0xFFFFFFFF) { return APR_SUCCESS; @@ -68,7 +68,7 @@ ap_status_t ap_create_thread_private(ap_threadkey_t **key, return GetLastError(); } -ap_status_t ap_get_thread_private(void **new, ap_threadkey_t *key) +apr_status_t apr_get_thread_private(void **new, apr_threadkey_t *key) { if ((*new) = TlsGetValue(key->key)) { return APR_SUCCESS; @@ -76,7 +76,7 @@ ap_status_t ap_get_thread_private(void **new, ap_threadkey_t *key) return GetLastError(); } -ap_status_t ap_set_thread_private(void *priv, ap_threadkey_t *key) +apr_status_t apr_set_thread_private(void *priv, apr_threadkey_t *key) { if (TlsSetValue(key->key, priv)) { return APR_SUCCESS; @@ -84,7 +84,7 @@ ap_status_t ap_set_thread_private(void *priv, ap_threadkey_t *key) return GetLastError(); } -ap_status_t ap_delete_thread_private(ap_threadkey_t *key) +apr_status_t apr_delete_thread_private(apr_threadkey_t *key) { if (TlsFree(key->key)) { return APR_SUCCESS; @@ -92,33 +92,33 @@ ap_status_t ap_delete_thread_private(ap_threadkey_t *key) return GetLastError(); } -ap_status_t ap_get_threadkeydata(void **data, const char *key, - ap_threadkey_t *threadkey) +apr_status_t apr_get_threadkeydata(void **data, const char *key, + apr_threadkey_t *threadkey) { - return ap_get_userdata(data, key, threadkey->cntxt); + return apr_get_userdata(data, key, threadkey->cntxt); } -ap_status_t ap_set_threadkeydata(void *data, const char *key, - ap_status_t (*cleanup) (void *), - ap_threadkey_t *threadkey) +apr_status_t apr_set_threadkeydata(void *data, const char *key, + apr_status_t (*cleanup) (void *), + apr_threadkey_t *threadkey) { - return ap_set_userdata(data, key, cleanup, threadkey->cntxt); + return apr_set_userdata(data, key, cleanup, threadkey->cntxt); } -ap_status_t ap_get_os_threadkey(ap_os_threadkey_t *thekey, ap_threadkey_t *key) +apr_status_t apr_get_os_threadkey(apr_os_threadkey_t *thekey, apr_threadkey_t *key) { *thekey = key->key; return APR_SUCCESS; } -ap_status_t ap_put_os_threadkey(ap_threadkey_t **key, - ap_os_threadkey_t *thekey, ap_pool_t *cont) +apr_status_t apr_put_os_threadkey(apr_threadkey_t **key, + apr_os_threadkey_t *thekey, apr_pool_t *cont) { if (cont == NULL) { return APR_ENOPOOL; } if ((*key) == NULL) { - (*key) = (ap_threadkey_t *)ap_palloc(cont, sizeof(ap_threadkey_t)); + (*key) = (apr_threadkey_t *)apr_palloc(cont, sizeof(apr_threadkey_t)); (*key)->cntxt = cont; } (*key)->key = *thekey; |