Re: is there a chance for a race condition in pthread_mutex_[un]lock.c?
Ulrich Drepper <[email protected]> Wed, 17 Dec 2003 10:35:11 -0800
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Perez-Gonzalez, Inaky wrote: > Still makes me nervous that this situation can go undetected. > Would it be worth to assert that __owner != 0 on unlock() to > catch this case? assert are useful for debugging the thread library itself. No version actually used at runtime should have assertions still in place. So no, not useful. - -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/4KHf2ijCOnn/RHQRAtvdAJoDims4dw08P4h+zaix9eCXpGgw2gCfSawf MYExtT61XL5FBLYdlhB6Lx8= =/cKu -----END PGP SIGNATURE-----