Changeset 1714


Ignore:
Timestamp:
1/28/2010 7:50:15 AM (5 years ago)
Author:
lowjoel
Message:

Fixed race condition potentially created by initialising the remote executor server thread immediately upon construction since Run is not yet called.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Manager/RemoteExecutor.cs

    r1675 r1714  
    100100            thread = new Thread(Main); 
    101101            serverLock = new Semaphore(maxServerInstances, maxServerInstances); 
    102  
    103             thread.Start(); 
    104             Thread.Sleep(0); 
    105102        } 
    106103 
     
    125122 
    126123            base.Dispose(disposing); 
     124        } 
     125 
     126        public override void Run() 
     127        { 
     128            thread.Start(); 
     129            Thread.Sleep(0); 
     130            base.Run(); 
    127131        } 
    128132 
Note: See TracChangeset for help on using the changeset viewer.