[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Is it a bug of PTHREAD_MUTEX_ERRORCHECK_NP ?
- From: Ulrich Drepper <drepper redhat com>
- To: phil-list redhat com
- Subject: Re: Is it a bug of PTHREAD_MUTEX_ERRORCHECK_NP ?
- Date: Thu, 06 Mar 2003 22:41:52 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hu, Boris wrote:
> In tst-mutex2, when link statically the library and no thread created,
> there is no
> __pthread_initialize_minimal(). so pd == NULL.
> in pthread_mutex_lock.c,
>
> case PTHREAD_MUTEX_ERRORCHECK_NP:
> /* Check whether we already hold the mutex. */
> if (mutex->__data.__owner == pd )
> return EDEADLK;
The thread descriptor pointer should never be NULL. The mutex code is
ok. Some initializer may need some help.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+aD8w2ijCOnn/RHQRAvn+AKDMPCK1+XMqsxWBwsDpcyygqu4xSACeOywp
mJg+uRJF3Wbzzv2ybuo0axE=
=XbQJ
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]