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.
Comments:
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.