#include <c4d_thread.h>
User thread object. Deprecated. Use maxon::ThreadInterface/JobInterface etc.
◆ C4DThread()
◆ ~C4DThread()
◆ _Free()
◆ Get()
Retrieves the BaseThread for the thread. Deprecated.
- Returns
- The BaseThread of the thread. The thread owns the pointed base thread.
◆ Start()
◆ End()
void End |
( |
Bool |
wait = true | ) |
|
Ends the thread. This function will not return until the thread has completely stopped. Deprecated. Use maxon::ThreadInterface::Wait() or GetResult().
- Warning
- 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.
- Parameters
-
[in] | wait | 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.
|
◆ IsRunning()
◆ TestBreak()
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.
This function is used by the Semaphore class during the Semaphore::Lock() to check if the thread has been stopped. Deprecated. Use maxon::ThreadInterface::IsCancelled().
- Note
- Check for break conditions, such as if ESC has been pressed outside of the thread.
- Returns
- true processing should be terminated, otherwise false.
◆ Wait()
void Wait |
( |
Bool |
checkevents = false | ) |
|
Waits until the thread has finished. Deprecated. Use maxon::ThreadInterface::Wait() or GetResult().
- Parameters
-
[in] | checkevents | If false then wait until the thread has finished. If true then additionally return if a Cinema 4D event occurred. |
◆ TestDBreak()
virtual Bool TestDBreak |
( |
| ) |
|
|
virtual |
◆ Main()
Override with the thread main code. Deprecated. Use maxon::ThreadInterface::operator ()().
Implemented in ProgressThread.
◆ GetThreadName()
virtual const Char* GetThreadName |
( |
| ) |
|
|
pure virtual |
Override to return the name of the thread. Deprecated. Use maxon::ThreadInterface.
- Returns
- The thread name. The thread owns the pointed character buffer.
Implemented in ProgressThread.
◆ MPThreadPool
friend class MPThreadPool |
|
friend |
◆ weak
◆ bt