RETURN-CODE Values For Thread-control Routines

The following values are provided as RETURN-CODE values from the thread-control routines:

0 No error was encountered.
1000 Memory allocation error.
1001 The thread identifier is invalid. No operations are valid on this thread. It is possible that the thread identifier specified was once valid but it has already terminated and detached.
1002 The thread identifier has been detached and terminated. No operations are valid on this thread.
1003 The thread is detached. CBL_THREAD_DETACH cannot detach the thread since it has already been detached. CBL_THREAD_WAIT cannot wait on the thread since it has already been detached.
1004 Too many threads. CBL_THREAD_CREATE cannot create another thread since too many threads exist in the system already.
1005 The stack size is invalid. CBL_THREAD_CREATE cannot create this thread as the operating system will not allow the provided stack size to be used.
1006 Invalid operation. CBL_THREAD_CREATE cannot create a thread while the system is deinitializing. An invalid thread-control routine was attempted on a thread that was not created with CBL_THREAD_CREATE. CBL_THREAD_PROG_LOCK was not called directly or indirectly from a COBOL program.
1007 System error. An unknown system error caused this function to fail.
1008 Threading not supported in this run-time system. A threaded application attempted to use the routines through a non-threaded run-time system.
1009 Invalid parameter. A parameter has been detected that is not within the valid range, or that is inconsistent with the routine.
1010 The thread has monitors locked at thread termination.
1011 Program or entry-point name not found. The program or entry-point name specified to CBL_THREAD_CREATE was not found, or there was an error loading it.

Related Topics: