Applied PR feedback

This commit is contained in:
Istvan Haller
2021-08-25 13:35:13 +01:00
parent 33a358e4fe
commit e8cc3af6e5
3 changed files with 13 additions and 21 deletions

View File

@@ -106,11 +106,9 @@ namespace snmalloc
/**
* Used to give correct signature to the pthread call for the Singleton class.
*/
inline pthread_key_t pthread_create() noexcept
inline void pthread_create(pthread_key_t* key) noexcept
{
pthread_key_t key;
pthread_key_create(&key, &pthread_cleanup);
return key;
pthread_key_create(key, &pthread_cleanup);
}
/**
* Performs thread local teardown for the allocator using the pthread library.