When thread id created as joinable,:

 

Before pthread_create, Use OPENSSL_set_locking_callback to setup mutex lock
for OPENSSL library.

After pthread_join Call Pthread_destroy_mutex and OPENSSL_free to release
mutex releated resource.

 

But. If I create the thread to be detaced.

 

When and How to correctly Call Pthread_destroy_mutex and OPENSSL_free?

Or, NOT Need to Call these two functions?

 

Thanks, Regards.

 

William

Reply via email to