This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The right thing to do is use the depth (count above) of the mutex to decide if the mutex is free. The owner shoud be valid only if the mutex is locked.
I believe the following should fix this for you, at least for libgomp. If you have a system for which the thread-id 0 is actually used, would you mind testing it?
Attachment:
z
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |