-   
 
   tslp_tsk
  
    -   
  
 
 Put task to sleep (with time-out).
 
 ER      tslp_tsk (TMO tmout);
 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 TMO     tmout;
 
 | 
    
 Specified time-out (in millisecond).
  
 Value:	Specified time-out.
  
 | 
  
 
 This service call moves the invoking task from the RUNNING state to the WAITING state (sleeping state).
 
 As a result, the invoking task is unlinked from the ready queue and excluded from the RI600V4 scheduling subject.
 
 If a wake-up request has been queued to the target task (the wake-up request counter > 0) when this service call is issued, this service call does not move the state but decrements the wake-up request counter (by subtracting 1 from the wake-up request counter).
 
 The sleeping state is cancelled in the following cases.
 
  
  
  
    
 Sleeping State Cancel Operation
  
 | 
    
 | 
  
  
    
 A wake-up request was issued as a result of issuing  wup_tsk.
  
 | 
    
 | 
  
  
    
 A wake-up request was issued as a result of issuing  iwup_tsk.
  
 | 
    
 | 
  
  
    
 Forced release from waiting (accept  rel_wai while waiting).
  
 | 
    
 | 
  
  
    
 Forced release from waiting (accept  irel_wai while waiting).
  
 | 
    
 | 
  
  
    
 The time specified by  tmout has elapsed.
  
 | 
    
 | 
  
 
 Note	 When 
TMO_FEVR is specified for wait time 
tmout, processing equivalent to 
slp_tsk will be executed.
 
 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 -	 This service call was issued from a non-task.
  
 -	 This service call was issued in the CPU locked state.
  
 -	 This service call was issued in the dispatching disabled state.
  
 -	 This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
  
 | 
  
  
    | 
 | 
    
 | 
    
 Forced release from the WAITING state.
  
 | 
  
  
    | 
 | 
    
 | 
    
 Polling failure or specified time has elapsed.
  
 |