tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Semantics of copying mutex/rwlock



> memcpy(&new_mutex, &old_mutex, sizeof(pthread_mutex_t))

Maybe - but maybe not.

At least it should be safe to copy PTHREAD_MUTEX_INITIALIZER, I guess?


Home | Main Index | Thread Index | Old Index