call "CBL_THREAD_EXIT" using by value return-value


  Using call prototype (see Key) Picture
return-value cblt-pointer usage pointer.

On Entry:


On Exit:

return-value Value returned from the thread processing
return-code A value indicating success or otherwise. See RETURN-CODE Values For Thread-control Routines.


In a thread created by CBL_THREAD_CREATE, this call has the same effect as executing STOP RUN RETURNING return-value from a COBOL program, or cobexit() from a program in another language. This function can also be called from a program in another programming language, in preference to using cobexit().

This call will fail, returning an error code, if the current thread was not created with CBL_THREAD_CREATE.