示例#1
0
 public void StopAndReleaseResources()
 {
     // Stop the cyclic thread
     if (this.doRun)
     {
         this.doRun = false;
         this.thread.Join(3000); // Timeout just for safety
     }
     // Remove us from the singleton factory
     participantFactory.RemoveParticipant(this.domainID, this.participantID);
     sendDataHandlerFactory = null;
 }
示例#2
0
文件: Participant.cs 项目: staxgr/ops
 public void StopAndReleaseResources()
 {
     // Stop the cyclic thread
     if (this.doRun)
     {
         this.doRun = false;
         this.thread.Join(3000); // Timeout just for safety
     }
     // Remove us from the singleton factory
     participantFactory.RemoveParticipant(this.domainID, this.participantID);
     sendDataHandlerFactory = null;
 }