This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
pthread_cond_wait
- From: Polina Dudnik <pdudnik at cs dot wisc dot edu>
- To: libc-help at sourceware dot org
- Date: Tue, 08 Jul 2008 10:16:13 -0500
- Subject: pthread_cond_wait
Hi,
I would like to write my own version of pthread_cond_wait, which doesn't
have a mutex as one of it's parameters, to be used with transactional
memory model. I am not sure why it is important to have the mutex locked
before calling lll_lock (cond->__data.__lock, pshared). What would
happen if the mutex was unlocked before calling lll_lock
(cond->__data.__lock, pshared). Thanks.