]> granicus.if.org Git - gc/commit
Do not define GC_write_cs for Xbox One target
authorIvan Maidanski <ivmai@mail.ru>
Wed, 11 Sep 2019 20:03:49 +0000 (23:03 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 11 Sep 2019 20:44:05 +0000 (23:44 +0300)
commitd73c341351fff11b638a5d27168a24922077ce7f
treee3fe9d14829c23b1d94cec1d962b39a3026c9f60
parenta20818be9ec660588af325d82e515ebb75bd9905
Do not define GC_write_cs for Xbox One target
(fix of commit d16debf3e)

Issue #173 (bdwgc).

GC_write_cs is not used in GC_write thus there is no need to define
and use it in GC_stop_world.

* include/private/gc_priv.h [THREADS && MSWIN_XBOX1] (GC_write_cs):
Do not declare.
* misc.c [THREADS && MSWIN_XBOX1] (GC_write_cs): Do not define.
* win32_threads.c (GC_stop_world): Call EnterCriticalSection() and
LeaveCriticalSection() only if MSWIN32 or MSWINCE.
include/private/gc_priv.h
misc.c
win32_threads.c