Go to Google Groups Home    comp.unix.programmer
copying pthread_mutex_t, pthread_cond_t

James Kanze <james.ka...@gmail.com>

Not sure this is the best group: my question concerns the actual
Posix standard, and what it says.

Basically, is it legal to copy a pthread_mutex_t or a
pthread_cond_t, and use the copy?  If not (which is the only
answer which makes sense to me), where does the Posix
specification say this?  If so, what does it mean: what happens,
for example, if a copy a mutex which is held by a thread, wait
on the copy, and the holding thread frees the original?

--
James Kanze (GABI Software)             email:james.ka...@gmail.com
Conseils en informatique orientée objet/
                   Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34