pthread_mutex_destroy() does not free the memory used to store the pthread_mutex_t. It's up to you to free() your own memory. Also remember that both pthread_mutex_init() and pthread_mutex_destroy() return zero on success.

picture loading error handler
12 thought(s)12

Threads in C

pthreads library and threaded programming in C
#C
#programming
#threads
#CS
Get

Explore more quotes

Guillermo Cabrera Infante