BaseThread Class Reference

#include <c4d_thread.h>

Detailed Description

Main thread base class used internally by Cinema 4D. Deprecated. Use maxon::ThreadInterface/JobInterface etc.

Cannot be instantiated.

Public Member Functions

Bool TestBreak (void)
void End (Bool wait=true)
Bool IsRunning (void)

Private Member Functions

 BaseThread ()
 ~BaseThread ()

Constructor & Destructor Documentation

◆ BaseThread()

BaseThread ( )

◆ ~BaseThread()

~BaseThread ( )

Member Function Documentation

◆ TestBreak()

Bool TestBreak ( void  )

Checks if the thread received a break command to stop processing.
Normally this is only true when Cinema 4D is closing, or when End() has been called.

true processing should be terminated, otherwise false.

◆ End()

void End ( Bool  wait = true)

Ends the thread. This function will not return until the thread has completely stopped.

If the thread does not check for TestBreak() then this function will not return until the thread has finished and this might get into a deadlock situation.
[in]waitDetermines if thread termination is synchronous or asynchronous:
  • If true the function will not return until the thread is finished.
  • If false the function returns immediately although the thread will still run until it is finished.

◆ IsRunning()

Bool IsRunning ( void  )

Checks if the thread is running.

true if the thread is running, otherwise false.