skip to main content

Library Routines : C$ASYNCPOLL

C$ASYNCPOLL
The C$ASYNCPOLL library routine tests whether or not a thread still exists.
Syntax:
 CALL "C$ASYNCPOLL" USING threadHandle 
Parameters:
Examples:
Example - Call a program on a separate thread then check if thread is still running
working-storage section.
77 threadHandle usage handle.
77 threadStatus pic s9.
procedure division.
   call thread "programB" handle in threadHandle
   call "c$asyncpoll" using threadHandle 
   if threadStatus = 0 | The thread is still running
      display message "Cannot exit, threads still running"
   else
   end-if.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left