// Token: 0x06001A13 RID: 6675 RVA: 0x000EA2E7 File Offset: 0x000E84E7
 private static int amThreadCheckQuit(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert(thread);
     if (!Monitor.Wait(thread.thread_id, 0))
     {
         return(0);
     }
     return(1);
 }
 // Token: 0x06001A0D RID: 6669 RVA: 0x000EA230 File Offset: 0x000E8430
 private static Thread amThreadCreate(ref AppMain.AMS_THREAD thread, ParameterizedThreadStart proc, object arg, AppMain.AMD_CORE core, int prio, uint stack_size, string name)
 {
     AppMain.mppAssertNotImpl();
     AppMain.amAssert(thread);
     AppMain.amAssert(proc);
     thread.thread_id = new Thread(new ParameterizedThreadStart(proc.Invoke));
     if (thread.thread_id != null)
     {
         AppMain.amAlarmCreate(thread.alarm_exit);
         AppMain.amMutexCreate(thread.mutex);
         thread.thread_id.Start(arg);
     }
     return(thread.thread_id);
 }
Exemplo n.º 3
0
 private static void amThreadDelete(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert((object)thread);
     AppMain.amMutexDelete(thread.mutex);
     AppMain.amAlarmDelete(thread.alarm_exit);
 }
Exemplo n.º 4
0
 private static void amThreadWaitQuit(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert((object)thread);
     Monitor.Wait((object)thread.thread_id);
 }
Exemplo n.º 5
0
 private static int amThreadCheckQuit(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert((object)thread);
     return(!Monitor.Wait((object)thread.thread_id, 0) ? 0 : 1);
 }
Exemplo n.º 6
0
 private static void amThreadQuit(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert((object)thread);
     thread.thread_id.Abort();
     thread.thread_id = (Thread)null;
 }
Exemplo n.º 7
0
 private static int amThreadCheckExit(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert((object)thread);
     return(AppMain.amAlarmCheck(thread.alarm_exit));
 }
Exemplo n.º 8
0
 private static int amThreadExit(AppMain.AMS_THREAD thread)
 {
     AppMain.amAssert((object)thread);
     AppMain.amAlarmSet(thread.alarm_exit);
     return(1);
 }
Exemplo n.º 9
0
 private static void amThreadOpen(AppMain.AMS_THREAD thread)
 {
     AppMain.mppAssertNotImpl();
 }