mutex held in a thread which is cancelled stays busy
Erich Dollansky <[email protected]>
| Newsgroups | gmane.os.freebsd.questions,gmane.os.freebsd.devel.threading |
|---|---|
| Message-ID | <[email protected]> |
Hi, for testing purpose, I did the following. Start a thread, initialise a mutex in a global variable, lock the mutex and wait in that thread. Wait in the main program until above's thread waits and cancel it. Clean up behind the cancelled thread but leave intentional the mutex locked. I would have expected now to get an error like 'EOWNERDEAD' doing operations with that mutex. But I get 'EBUSY' as the error. Of course, the program is not able to do any thing with that mutex. Where is the misunderstanding? Erich _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"