ncannasse před 7 roky
rodič
revize
fc91b554f2
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      std/hl/Gc.hx

+ 5 - 1
std/hl/Gc.hx

@@ -34,6 +34,10 @@ enum GcFlag {
 		Disable GC locking for multithreads
 		Disable GC locking for multithreads
 	**/
 	**/
 	NoThreads;
 	NoThreads;
+	/**
+		Force major GC on each allocation
+	**/
+	ForceMajor;
 }
 }
 
 
 class Gc {
 class Gc {
@@ -61,7 +65,7 @@ class Gc {
 		_set_flags(v.toInt());
 		_set_flags(v.toInt());
 		return v;
 		return v;
 	}
 	}
-	
+
 	/**
 	/**
 		Enter/leave a blocking section: when in a blocking section the thread cannot
 		Enter/leave a blocking section: when in a blocking section the thread cannot
 		allocate any memory but other threads will not wait for it for collecting memory.
 		allocate any memory but other threads will not wait for it for collecting memory.