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())
{
}

Further Reading

BaseThread::TestBreak
Bool TestBreak(void)
Definition: c4d_thread.h:34
RENDERRESULT
RENDERRESULT
Definition: ge_prepass.h:404
BaseThread
Definition: c4d_thread.h:22
RENDERRESULT::OK
@ OK
Function was successful.
BaseVideoPost
Definition: c4d_videopost.h:19
VideoPostStruct
Definition: c4d_tools.h:2543
BaseVideoPostStruct::thread
BaseThread * thread
The executing thread. Use thread->TestBreak() to check for a user break.
Definition: c4d_videopostdata.h:89