Changeset 933


Ignore:
Timestamp:
5/1/2009 12:38:40 AM (6 years ago)
Author:
lowjoel
Message:

Clear up resources used by the locks for the remote executor server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/RemoteExecutor.cs

    r928 r933  
    105105        protected override void Dispose(bool disposing) 
    106106        { 
     107            //Close the polling thread that creates new server instances 
    107108            thread.Abort(); 
     109 
     110            //Acquire all available locks to ensure no more server instances exist, 
     111            //then destroy the semaphore 
     112            for (int i = 0; i < maxServerInstances; ++i) 
     113                serverLock.WaitOne(); 
     114            serverLock.Close(); 
     115 
    108116            base.Dispose(disposing); 
    109117        } 
Note: See TracChangeset for help on using the changeset viewer.