+2003-12-17 Zoltan Varga <vargaz@freemail.hu>
+
+ * icall.c (ves_icall_System_Environment_get_HasShutdownStarted):
+ Reenable call to mono_runtime_is_shutting_down ().
+
+ * appdomain.c (mono_runtime_is_shutting_down): New helper function to
+ determine if the runtime is shutting down.
+
2003-12-16 Jackson Harper <jackson@ximian.com>
* icall.c: comment out call to mono_runtime_is_shutting_down to
static gunichar2 process_guid [36];
static gboolean process_guid_set = FALSE;
+static gboolean shutting_down = FALSE;
+
static MonoAssembly *
mono_domain_assembly_preload (MonoAssemblyName *aname,
gchar **assemblies_path,
void
mono_runtime_cleanup (MonoDomain *domain)
{
+ shutting_down = TRUE;
+
/* This ends up calling any pending pending (for at most 2 seconds) */
mono_gc_cleanup ();
quit_function (mono_root_domain, NULL);
}
+gboolean
+mono_runtime_is_shutting_down (void)
+{
+ return shutting_down;
+}
+
gboolean
mono_domain_has_type_resolve (MonoDomain *domain)
{
void
mono_runtime_quit (void);
+gboolean
+mono_runtime_is_shutting_down (void);
+
const char*
mono_check_corlib_version (void);
static MonoBoolean
ves_icall_System_Environment_get_HasShutdownStarted (void)
{
- /*
if (mono_runtime_is_shutting_down ())
return TRUE;
- */
if (mono_domain_is_unloading (mono_domain_get ()))
return TRUE;