c4d.threading.BaseThread

This is the main thread base class used internally by Cinema 4D. Cannot be instantiated.

Definition

class c4d.threading. BaseThread

Methods

BaseThread. TestBreak ( )

Check if the thread received a break command to stop processing.

Return type: bool
Returns: True when Cinema 4D closes, or when a stopping condition has occured, such as End() .
BaseThread. End ( wait=True )

End the thread. This function will not return before the thread has completely stopped.

Note

If the thread does not check for TestBreak() then this function will not return and you will get a deadlock.

Parameters: wait ( bool ) – This parameter determines 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.
BaseThread. IsRunning ( )

Check if the thread is running.

Return type: bool
Returns: True if the thread is running, otherwise False .

Table Of Contents