]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgcc/config/i386/gthr-win32.h
gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
authorWu Yongwei <adah@sh163.net>
Wed, 23 Jun 2004 23:57:27 +0000 (23:57 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Wed, 23 Jun 2004 23:57:27 +0000 (23:57 +0000)
commit42dfcf84c26960bcc9c0d2f77f9c9ab4ce424927
tree71286fc768d32129b2b42546dd5ec76ecaa760bc
parent11ac38b22e3f3de50a968364c86c1430e56627ac
gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.

2004-06-23  Wu Yongwei  <adah@sh163.net>

* gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
(__gthr_i486_lock_cmp_xchg): New inline assembly function.
(__GTHR_W32_InterlockedCompareExchange): New macro to choose a
suitable function for interlocked compare-and-exchange.
(__gthread_mutex_trylock): Use
__GTHR_W32_InterlockedCompareExchange.
(__gthread_mutex_init_function, __gthread_mutex_lock,
__gthread_mutex_trylock, __gthread_mutex_unlock): Adjust the
initial counter value to work correctly under Windows 95.
* config/i386/gthr-win32.c: Adjust include order.
Define __GTHREAD_I486_INLINE_LOCK_PRIMITIVES before including
gthr-win32.h.
(__gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,
__gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): Adjust
to match inline versions in gthr-win32.h.

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