* thread.h (pthread_mutex::get_pthread_self): Remove.

(pthread_mutex::lock): Use ::pthread_self as self parameter.
	(pthread_mutex::trylock): Ditto.
	(pthread_mutex::unlock): Ditto.
	(pthread_mutex::destroy): Ditto.
This commit is contained in:
Corinna Vinschen 2005-09-05 15:17:03 +00:00
parent be7d909395
commit bf58ec35b4
2 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,11 @@
2005-09-05 Corinna Vinschen <corinna@vinschen.de>
* thread.h (pthread_mutex::get_pthread_self): Remove.
(pthread_mutex::lock): Use ::pthread_self as self parameter.
(pthread_mutex::trylock): Ditto.
(pthread_mutex::unlock): Ditto.
(pthread_mutex::destroy): Ditto.
2005-09-02 Dave Korn <dave.korn@artimi.com>
* Makefile.in (CXXFLAGS): Use 'override' to correctly set flags to

View File

@ -301,27 +301,21 @@ public:
int type;
int pshared;
pthread_t get_pthread_self () const
{
return PTHREAD_MUTEX_NORMAL == type ? MUTEX_OWNER_ANONYMOUS :
::pthread_self ();
}
int lock ()
{
return _lock (get_pthread_self ());
return _lock (::pthread_self ());
}
int trylock ()
{
return _trylock (get_pthread_self ());
return _trylock (::pthread_self ());
}
int unlock ()
{
return _unlock (get_pthread_self ());
return _unlock (::pthread_self ());
}
int destroy ()
{
return _destroy (get_pthread_self ());
return _destroy (::pthread_self ());
}
void set_owner (pthread_t self)