diff options
author | Christopher Faylor <me@cgf.cx> | 2010-02-12 23:07:13 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-02-12 23:07:13 +0300 |
commit | 2b1407d372f69777ee4949b9e41cf1a1e87810be (patch) | |
tree | 8472fb355cf864fb0305daa8b7528f4176a64f60 /winsup/cygwin/pthread.cc | |
parent | 97e5d3ffa4bf04157850d82e66d4744610067c25 (diff) |
* pthread.cc (pthread_mutex_init): Explicitly fill out third arg to
pthread_mutex::init.
* thread.cc: Remov some obsolete comments.
(verifyable_object_isvalid): Reflect change to use thread_magic_t for magic
numbers.
(pthread_mutex::pthread_mutex): Set magic number to invalid initially until
we've verified that everything is valid.
(pthread_mutex::unlock): Fix a comment.
(verifyable_object::verifyable_object): Delete here.
(~verifyable_object::~verifyable_object): Ditto.
(pthread_mutex::init): Don't run is_good_initializer for non-static objects.
* thread.h (thread_magic_t): New typedef.
(verifyable_object::verifyable_object): Use thread_magic_t;
(verifyable_object::magic): Ditto.
(pthread_mutex::is_good_initializer_or_bad_object): Remove unneeded variable
names.
(pthread_mutex::can_be_unlocked): Ditto.
(pthread_mutex::init): Ditto. Remove default for third argument.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index b110b831b..18f2aea5d 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -88,7 +88,7 @@ pthread_t pthread_self () int pthread_mutex_init (pthread_mutex_t * mutex, const pthread_mutexattr_t * attr) { - return pthread_mutex::init (mutex, attr); + return pthread_mutex::init (mutex, attr, NULL); } /* Synchronisation */ |