cancel

Cancels any current call to setvbuf for the specified thread

Local Servers:blocking
Remote Servers:N/A
Classification:4.x, 5.x, 6.x
Service:Operating System I/O

Syntax

  #include <unistd.h>  
   
  int cancel  (  
     int   t_id); 
  

Parameters

t_id
(IN) Specifies the target thread id, exactly as returned when the target thread as created.

Return Values

Returns 0 on success. If an error occurs, it returns -1 and errno is set to:

0x0000004E

ECANCELED

The operation is invalid because the target thread is either not in a delay operation or the delay operation has already been cancelled.

Remarks

A CLib thread was optionally awakened from delay by calling ResumeThread (Threads Management) and, to overcome the affects of delay, cancel must be called.

See Also

setvbuf, GetThreadID (Threads Management)