Changes between Version 13 and Version 14 of ObjectDeveloperGuide

Show
Ignore:
Timestamp:
05/12/09 00:23:25 (17 years ago)
Author:
ismael (IP: 62.57.1.15)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectDeveloperGuide

    v13 v14  
    108108        InitPHAL(); 
    109109 
    110         switch(Status()) { 
    111         case PHAL_STATUS_INIT: 
     110        while(1) { 
     111            switch(Status()) { 
     112            case PHAL_STATUS_INIT: 
    112113                /** Call INITIALIZATION function */ 
    113114                if (!Init()) { 
     
    116117                } 
    117118                break; 
    118         case PHAL_STATUS_RUN: 
     119            case PHAL_STATUS_RUN: 
    119120                /** Call RUN function */ 
    120121                if (!Run()) { 
     
    123124                } 
    124125                break; 
    125         default: 
     126            default: 
    126127                /** rest, is STOP */ 
    127128                ClosePHAL(); 
    128129                exit(0); 
    129130                break; 
    130         } 
    131         Relinquish(); 
     131            } 
     132            Relinquish(); 
     133        } 
    132134} 
    133135}}}