Ignore:
Timestamp:
11/24/06 22:05:28 (6 years ago)
Author:
sys
Message:

bug multi-threading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2.x/Jav_CO/com/scenari/m/co/univers/WUniversHandle.java

    r7426 r7513  
    377377     */ 
    378378    synchronized void wUnloadUnivers() throws Exception { 
    379  
     379        if(fUnivers  != null) { 
     380                //Time stamp du nouvel état 
     381                fTimeStamp = System.currentTimeMillis(); 
     382         
     383                //On fixe le nouvel état 
     384                fEtat = ETAT_UNLOADING; 
     385         
     386                //On attend que les derniers traitements s'achèvent. 
     387                Thread.sleep(sTimeToUpdate); 
     388         
     389                //On prévient du unload 
     390                fUnivers.wUnload(); 
     391         
     392                //On désactive l'univers 
     393                fUnivers = null; 
     394        } 
     395         
    380396        //Time stamp du nouvel état 
    381397        fTimeStamp = System.currentTimeMillis(); 
    382  
    383         //On fixe le nouvel état 
    384         fEtat = ETAT_UNLOADING; 
    385  
    386         //On attend que les derniers traitements s'achèvent. 
    387         Thread.sleep(sTimeToUpdate); 
    388  
    389         //On prévient du unload 
    390         fUnivers.wUnload(); 
    391  
    392         //On désactive l'univers 
    393         fUnivers = null; 
    394  
    395         //Time stamp du nouvel état 
    396         fTimeStamp = System.currentTimeMillis(); 
    397  
    398398        //On fixe le nouvel état 
    399399        fEtat = ETAT_UNLOADED; 
Note: See TracChangeset for help on using the changeset viewer.