company logo

CTX_Base :: ExecuteThread - Execute action in a thread

The function executes the action passed in fname in a separate thread. Depending on the wait option, the thread will start as asynchronous thread (wait=false) or as serialized thread, which will start only when no other serialized thread is running. There is only one queue for synchronizing serialized threads. Asynchronous threads will start without waiting for serialized threads. Serialized threads will not wait for asynchronous threads.

When a context object is going to be destroyed, it calls the virtual StopThreads() function to terminate all active threads.

Return value:  Success ( logical  )

Implementation details

logical CTX_Base  :: ExecuteThread ( char *fname, logical wait )
  • fname - Function name

    The function name is passed as 0-terminated string with a maximum length of 40 characters.

    Notes:

    must be C string

  • wait - wait - Title unknown