Exemple #1
0
 private bool PollForExit()
 {
     if (PythonSubprocess.WaitForSingleObjectPI(_internalHandle, 0) == PythonSubprocess.WAIT_OBJECT_0)
     {
         PythonSubprocess.GetExitCodeProcessPI(_internalHandle, out _exitCode);
         return(true);
     }
     return(false);
 }
Exemple #2
0
 public void Close()
 {
     lock (this) {
         if (!_closed)
         {
             PythonSubprocess.CloseHandle(_internalHandle);
             _closed = true;
             GC.SuppressFinalize(this);
         }
     }
 }