Commit 0dd8b32b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use PTHREAD_NULL if the platform has it.

Spotted by: Rasmus Villemoes
parent 6cbd4c85
......@@ -154,7 +154,11 @@ Lck__Unlock(struct lock *lck, const char *p, int l)
* implementations of pthread.
* #endif
*/
#ifdef PTHREAD_NULL
ilck->owner = PTHREAD_NULL;
#else
memset(&ilck->owner, 0, sizeof ilck->owner);
#endif
AZ(pthread_mutex_unlock(&ilck->mtx));
if (DO_DEBUG(DBG_WITNESS))
Lck_Witness_Unlock(ilck);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment