gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
authorWu Yongwei <adah@sh163.net>
Tue, 27 Apr 2004 21:38:05 +0000 (21:38 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Tue, 27 Apr 2004 21:38:05 +0000 (21:38 +0000)
commit80408cac1637c8452c3b9f3a227d701b9d40641f
treecfd7dc5d643ae5922fccb3082a401b80049d8d46
parent1f1d584b73ffdfaf6cbfbcb8541cf67ad5136e6f
gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.

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.

From-SVN: r81227
gcc/ChangeLog
gcc/config/i386/gthr-win32.c
gcc/gthr-win32.h