mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Lazy<T>
, LazyTLS<T>
, thread dtors
This commit is contained in:
parent
cf269db0eb
commit
a27ef9beda
17 changed files with 437 additions and 30 deletions
|
@ -1528,10 +1528,10 @@ BFP_EXPORT void BFP_CALLTYPE BfpCritSect_Leave(BfpCritSect* critSect)
|
|||
pthread_mutex_unlock(&critSect->mPMutex);
|
||||
}
|
||||
|
||||
BFP_EXPORT BfpTLS* BFP_CALLTYPE BfpTLS_Create()
|
||||
BFP_EXPORT BfpTLS* BFP_CALLTYPE BfpTLS_Create(BfpTLSProc exitProc)
|
||||
{
|
||||
pthread_key_t key = 0;
|
||||
pthread_key_create(&key, NULL);
|
||||
pthread_key_create(&key, exitProc);
|
||||
return (BfpTLS*)(intptr)key;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue