BaseThread Manual

Table of Contents

About

A BaseThread is a classic Cinema 4D thread. BaseThread cannot be instantiated; for custom threads see C4DThread Manual.

Access

A BaseThread is either accessed through various utility functions or is given as an argument of an implemented function of a plugin class. Such a BaseThread argument defines the thread context of a function that is executed in a thread. The called function should stop if the given thread is stopped.

Use

These BaseThread properties can be accessed:

// In the Execute() function of a VideoPostData plugin one must
// check if the rendering process should be stopped.
{
// check if break
BaseThread* const bt = vps->thread;
if (bt && bt->TestBreak())
{
}
Definition: c4d_thread.h:28
Bool TestBreak()
Definition: c4d_thread.h:39
Definition: c4d_videopost.h:24
RENDERRESULT
Definition: ge_prepass.h:422
@ OK
Function was successful.
Definition: node.h:10
BaseThread * thread
The executing thread. Use thread->TestBreak() to check for a user break.
Definition: c4d_videopostdata.h:94
Definition: c4d_tools.h:2548

Further Reading