#endif
#ifdef THREADS
-# if defined(MSWIN32) || defined(MSWINCE) || defined(MSWIN_XBOX1)
+# if defined(MSWIN32) || defined(MSWINCE)
GC_EXTERN CRITICAL_SECTION GC_write_cs; /* defined in misc.c */
-# endif
-# if defined(GC_ASSERTIONS) && (defined(MSWIN32) || defined(MSWINCE))
- GC_EXTERN GC_bool GC_write_disabled;
+# ifdef GC_ASSERTIONS
+ GC_EXTERN GC_bool GC_write_disabled;
/* defined in win32_threads.c; */
/* protected by GC_write_cs. */
-# endif
+# endif
+# endif /* MSWIN32 || MSWINCE */
# if defined(GC_DISABLE_INCREMENTAL) || defined(HAVE_LOCKFREE_AO_OR)
# define GC_acquire_dirty_lock() (void)0
# define GC_release_dirty_lock() (void)0
return GC_is_initialized;
}
-#if (defined(MSWIN32) || defined(MSWINCE) || defined(MSWIN_XBOX1)) \
- && defined(THREADS)
+#if (defined(MSWIN32) || defined(MSWINCE)) && defined(THREADS)
GC_INNER CRITICAL_SECTION GC_write_cs;
#endif
# if !defined(GC_NO_THREADS_DISCOVERY) || defined(GC_ASSERTIONS)
GC_please_stop = TRUE;
# endif
-# ifndef CYGWIN32
-# ifndef MSWIN_XBOX1
- GC_ASSERT(!GC_write_disabled);
-# endif
+# if defined(MSWIN32) || defined(MSWINCE)
+ GC_ASSERT(!GC_write_disabled);
EnterCriticalSection(&GC_write_cs);
-# endif
-# if defined(GC_ASSERTIONS) && (defined(MSWIN32) || defined(MSWINCE))
/* It's not allowed to call GC_printf() (and friends) here down to */
/* LeaveCriticalSection (same applies recursively to GC_suspend, */
/* GC_delete_gc_thread_no_free, GC_get_max_thread_index, GC_size */
/* and GC_remove_protection). */
- GC_write_disabled = TRUE;
+# ifdef GC_ASSERTIONS
+ GC_write_disabled = TRUE;
+# endif
# endif
# ifndef GC_NO_THREADS_DISCOVERY
if (GC_win32_dll_threads) {
}
}
}
-# if defined(GC_ASSERTIONS) && (defined(MSWIN32) || defined(MSWINCE))
- GC_write_disabled = FALSE;
-# endif
-# ifndef CYGWIN32
+# if defined(MSWIN32) || defined(MSWINCE)
+# ifdef GC_ASSERTIONS
+ GC_write_disabled = FALSE;
+# endif
LeaveCriticalSection(&GC_write_cs);
# endif
# ifdef PARALLEL_MARK