* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: thread.c,v 1.18.18.4 2005/09/18 07:58:08 marka Exp $ */
+/* $Id: thread.c,v 1.18.18.5 2005/09/20 05:38:37 marka Exp $ */
#include <config.h>
}
void *
-isc_key_getspecific(isc_thread_key_t key) {
+isc_thread_key_getspecific(isc_thread_key_t key) {
return(TlsGetValue(key));
}
int
-isc_key_setspecific(isc_thread_key_t key, void *value) {
+isc_thread_key_setspecific(isc_thread_key_t key, void *value) {
return (TlsSetValue(key, value) ? 0 : GetLastError());
}
int
-isc_key_create(isc_thread_key_t *key, void (*func)(void *)) {
+isc_thread_key_create(isc_thread_key_t *key, void (*func)(void *)) {
*key = TlsAlloc();
return ((*key != -1) ? 0 : GetLastError());
}
int
-isc_key_destroy(isc_thread_key_t key) {
+isc_thread_key_destroy(isc_thread_key_t key) {
return (TlsFree(key) ? 0 : GetLastError());
}