예제 #1
0
 public static uint RunCommandWithLock(Lifetime lifetime, [NotNull] InvokeChildProcess.StartInfo startinfo, [CanBeNull] ILogger logger)
 {
     lock (HACK_getMutexForUBT())
     {
         return(InvokeChildProcess.InvokeCore(lifetime, startinfo,
                                              InvokeChildProcess.SyncAsync.Sync, logger).Result);
     }
 }
예제 #2
0
 private Task <uint> StartUBTBuildPluginAsync(Lifetime lifetime, FileSystemPath command,
                                              CommandLineBuilderJet commandLine, InvokeChildProcess.PipeStreams pipeStreams)
 {
     InvokeChildProcess.StartInfo startinfo = new InvokeChildProcess.StartInfo(command)
     {
         Arguments = commandLine,
         Pipe      = pipeStreams
     };
     lock (HACK_getMutexForUBT())
     {
         return(InvokeChildProcess.InvokeCore(lifetime, startinfo,
                                              InvokeChildProcess.SyncAsync.Async, myLogger));
     }
 }