mirror of
https://github.com/boostorg/thread.git
synced 2026-02-09 23:42:18 +00:00
Apply manualy fixes on develop concerning memory leak os tss and scoped_thread move assignement.
This commit is contained in:
@@ -53,6 +53,9 @@ namespace boost
|
||||
{
|
||||
if(memcmp(&epoch_tss_key_flag, &pthread_once_init_value, sizeof(pthread_once_t)))
|
||||
{
|
||||
void* data = (void*)pthread_getspecific(epoch_tss_key);
|
||||
if (data)
|
||||
delete_epoch_tss_data(data);
|
||||
pthread_key_delete(epoch_tss_key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user