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:29
Bool TestBreak()
Definition: c4d_thread.h:40
Definition: c4d_videopost.h:24
RENDERRESULT
Definition: ge_prepass.h:426
@ 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:2636

Further Reading