(part of commits
39e14be,
05e3377 from Unity-Technologies/bdwgc)
Issue #173 (bdwgc).
* include/gc.h (GC_stop_world_external, GC_start_world_external):
Declare new API function.
* misc.c (GC_stop_world_external, GC_start_world_external): Implement.
(*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic_ignore_off_page)
#endif /* _AMIGA && !GC_AMIGA_MAKINGLIB */
+GC_API void GC_CALL GC_stop_world_external(void);
+GC_API void GC_CALL GC_start_world_external(void);
+
#ifdef __cplusplus
} /* extern "C" */
#endif
GC_err_printf("Insufficient memory for the allocation\n");
EXIT();
}
+
+GC_API void GC_CALL GC_stop_world_external(void)
+{
+ LOCK();
+ STOP_WORLD();
+}
+
+GC_API void GC_CALL GC_start_world_external(void)
+{
+ START_WORLD();
+ UNLOCK();
+}