OSDN Git Service

2004-04-27 Wu Yongwei <adah@sh163.net>
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Apr 2004 21:38:05 +0000 (21:38 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Apr 2004 21:38:05 +0000 (21:38 +0000)
commit402de9fbbd1b1a7cfcffddbf66976e4a20e180b4
treecfd7dc5d643ae5922fccb3082a401b80049d8d46
parentde88352ae4470425283a950d13fe7a9d9fd296e8
2004-04-27  Wu Yongwei  <adah@sh163.net>

* gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
(__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
(__gthread_mutex_init_function): Replace CreateMutex with
initialization of custom mutex using CreateSemaphore.
(__gthread_mutex_lock): Use InterlockedIncrement.
(__gthread_mutex_trylock): Use InterlockedCompareExchange.
(__gthread_mutex_unlock): Use InterlockedDecrement and
ReleaseSemaphore to unlock
* config/i386/gthr-win32.c (__gthread_mutex_init_function,
__gthread_mutex_lock, __gthread_mutex_trylock,
__gthread_mutex_unlock): Adjust to match inline versions in
gthr-win32.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81227 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/gthr-win32.c
gcc/gthr-win32.h