diff options
author | Christopher Faylor <me@cgf.cx> | 2010-02-10 07:25:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-02-10 07:25:26 +0000 |
commit | 3700578ee8a4d7f56184a8a742067a2bdcb71360 (patch) | |
tree | ab029b2747c9159a4ecfd80131ae5391242d8a09 /winsup/cygwin/regex/engine.c | |
parent | 161387a725ca8b931c1f68dd373f44e0bd0e7922 (diff) | |
download | cygnal-3700578ee8a4d7f56184a8a742067a2bdcb71360.tar.gz cygnal-3700578ee8a4d7f56184a8a742067a2bdcb71360.tar.bz2 cygnal-3700578ee8a4d7f56184a8a742067a2bdcb71360.zip |
* dcrt0.cc (_dll_crt0): Set _main_tls as early as possible.
* thread.cc (pthread_mutex::can_be_unlocked): Remove check for
MUTEX_OWNER_ANONYMOUS since it is racy and unsafe.
(pthread::init_mainthread): Initialize thread directly from _my_tls.
(pthread::self): Ditto.
(pthread::get_tls_self_pointer): Delete.
(pthread_mutex::pthread_mutex): Use an event rather than a semaphore.
(pthread_mutex::lock): Rename from _<func>. Derive self directly.
(pthread_mutex::tryunlock): Ditto.
(pthread_mutex::destroy): Ditto.
(pthread_mutex::unlock): Ditto. Accommodate change from semaphore to event.
(pthread_mutex::_fixup_after_fork): Accommodate change from semaphore to event.
(pthread_mutex::init): Don't attempt to initialize a semaphore unless it is in
an initialized state. Do this check under mutex_initialization_lock.lock
* thread.h (fast_mutex::init): Use event rather than semaphore.
(fast_mutex::lock): Ditto.
(pthread_mutex::_lock): Delete.
(pthread_mutex::_unlock): Ditto.
(pthread_mutex::_trylock): Ditto.
(pthread_mutex::_destroy): Ditto.
(pthread_mutex::get_pthread_self): Ditto.
(pthread_mutex::get_tls_self_pointer): Ditto.
(pthread_mutex::lock): Un-inline.
(pthread_mutex::unlock): Ditto.
(pthread_mutex::trylock): Ditto.
(pthread_mutex::destroy): Ditto.
Diffstat (limited to 'winsup/cygwin/regex/engine.c')
0 files changed, 0 insertions, 0 deletions