Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-05 19:17:03 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-09-05 19:17:03 +0400
commitbf58ec35b4e79aa656b057bc754b64fe39e270da (patch)
tree0366da7f9b49f5cfce87933cd7c3f960ba35a8ae /winsup/cygwin/thread.h
parentbe7d909395d7a2b6e6b656997057c631dddfa2d7 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index c15ded478..f8ab9da8b 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -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)