diff options
author | Chris Robinson <[email protected]> | 2014-04-17 00:11:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-17 00:11:12 -0700 |
commit | c3b1c31d9b530e64e84805435784ec53eb5ea745 (patch) | |
tree | 4d289aa82e96d6fbba5242889f755e02c3820420 /Alc/helpers.c | |
parent | 8cc3d05949b9c2750a5460488cac58c82174e85c (diff) |
Rename althread_key_ wrappers to altss_ and move it to threads.h/c
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index 17fc9c2c..b8e5be03 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -322,31 +322,6 @@ void althread_once(althread_once_t *once, void (*callback)(void)) } -int althread_key_create(althread_key_t *key, void (*callback)(void*)) -{ - *key = TlsAlloc(); - if(callback) - InsertUIntMapEntry(&TlsDestructor, *key, callback); - return 0; -} - -int althread_key_delete(althread_key_t key) -{ - InsertUIntMapEntry(&TlsDestructor, key, NULL); - TlsFree(key); - return 0; -} - -void *althread_getspecific(althread_key_t key) -{ return TlsGetValue(key); } - -int althread_setspecific(althread_key_t key, void *val) -{ - TlsSetValue(key, val); - return 0; -} - - void *LoadLib(const char *name) { return LoadLibraryA(name); } void CloseLib(void *handle) |