Beispiel #1
0
 public static void AddAsyncQueue(string thread)
 {
     if (_instance != null && _instance._asyncTasks != null) {
         lock (_instance._asyncTasks){
             if (!_instance._asyncTasks.ContainsKey(thread)){
                 AsyncTask task = new AsyncTask(thread);
                 _instance._asyncTasks.Add(thread, task);
             }
         }
     }
 }