[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: is there a chance for a race condition in pthread_mutex_[un]lock.c?



-----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-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]