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