예제 #1
0
 public static void Start()
 {
     mainThread = new CooperativeThread(ConvertThreadToFiber());
     SwitchToFiber(mainThread.Id);
 }
예제 #2
0
 public static void Abort()
 {
     DeleteFiber(mainThread.Id);
     mainThread = null;
 }