* thread.cc (pthread_attr_init): Revert change from 2003-06-11
to return 0 if attribute is already initialized back to EBUSY. (pthread_condattr_init): Ditto. (pthread_rwlockattr_init): Ditto. (pthread_mutexattr_init): Ditto.
This commit is contained in:
parent
d6d2176fca
commit
1c80421cb4
|
@ -1,3 +1,11 @@
|
||||||
|
2003-06-12 Thomas Pfaff <tpfaff@gmx.net>
|
||||||
|
|
||||||
|
* thread.cc (pthread_attr_init): Revert change from 2003-06-11
|
||||||
|
to return 0 if attribute is already initialized back to EBUSY.
|
||||||
|
(pthread_condattr_init): Ditto.
|
||||||
|
(pthread_rwlockattr_init): Ditto.
|
||||||
|
(pthread_mutexattr_init): Ditto.
|
||||||
|
|
||||||
2003-06-12 Corinna Vinschen <corinna@vinschen.de>
|
2003-06-12 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* exceptions.cc (ctrl_c_handler): Don't send a signal on
|
* exceptions.cc (ctrl_c_handler): Don't send a signal on
|
||||||
|
|
|
@ -1965,7 +1965,7 @@ extern "C" int
|
||||||
pthread_attr_init (pthread_attr_t *attr)
|
pthread_attr_init (pthread_attr_t *attr)
|
||||||
{
|
{
|
||||||
if (pthread_attr::is_good_object (attr))
|
if (pthread_attr::is_good_object (attr))
|
||||||
return 0;
|
return EBUSY;
|
||||||
|
|
||||||
*attr = new pthread_attr;
|
*attr = new pthread_attr;
|
||||||
if (!pthread_attr::is_good_object (attr))
|
if (!pthread_attr::is_good_object (attr))
|
||||||
|
@ -2490,7 +2490,7 @@ extern "C" int
|
||||||
pthread_condattr_init (pthread_condattr_t *condattr)
|
pthread_condattr_init (pthread_condattr_t *condattr)
|
||||||
{
|
{
|
||||||
if (pthread_condattr::is_good_object (condattr))
|
if (pthread_condattr::is_good_object (condattr))
|
||||||
return 0;
|
return EBUSY;
|
||||||
|
|
||||||
*condattr = new pthread_condattr;
|
*condattr = new pthread_condattr;
|
||||||
if (!pthread_condattr::is_good_object (condattr))
|
if (!pthread_condattr::is_good_object (condattr))
|
||||||
|
@ -2676,7 +2676,7 @@ extern "C" int
|
||||||
pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr)
|
pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr)
|
||||||
{
|
{
|
||||||
if (pthread_rwlockattr::is_good_object (rwlockattr))
|
if (pthread_rwlockattr::is_good_object (rwlockattr))
|
||||||
return 0;
|
return EBUSY;
|
||||||
|
|
||||||
*rwlockattr = new pthread_rwlockattr;
|
*rwlockattr = new pthread_rwlockattr;
|
||||||
if (!pthread_rwlockattr::is_good_object (rwlockattr))
|
if (!pthread_rwlockattr::is_good_object (rwlockattr))
|
||||||
|
@ -2936,7 +2936,7 @@ extern "C" int
|
||||||
pthread_mutexattr_init (pthread_mutexattr_t *attr)
|
pthread_mutexattr_init (pthread_mutexattr_t *attr)
|
||||||
{
|
{
|
||||||
if (pthread_mutexattr::is_good_object (attr))
|
if (pthread_mutexattr::is_good_object (attr))
|
||||||
return 0;
|
return EBUSY;
|
||||||
|
|
||||||
*attr = new pthread_mutexattr ();
|
*attr = new pthread_mutexattr ();
|
||||||
if (!pthread_mutexattr::is_good_object (attr))
|
if (!pthread_mutexattr::is_good_object (attr))
|
||||||
|
|
Loading…
Reference in New Issue