コード例 #1
0
 public void Load(ResourceHandle handle)
 {
     try
     {
         Intermediate data;
         ResType      res = ReadResourceWithName(handle.Name, out data);
         queue.Add(() =>
         {
             try
             {
                 ThreadLoad(handle, res, data);
             }
             catch (Exception)
             {
                 throw new NotImplementedException("Exception in commandQueue should be handled.");
             }
             finally
             {
                 handle.Finished();
             }
         });
     }
     catch (Exception e)
     {
         handle.Finished();
         throw e;
     }
 }
コード例 #2
0
 public void Load(ResourceHandle resourceHandle)
 {
     executor.Add(() =>
     {
         loader.Load(resourceHandle);
     });
 }