BaseThread Manual

内容表

关于

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.

使用

这些 BaseThread properties can be accessed:

// In the Execute() function of a VideoPostData plugin one must // check if the rendering process should be stopped.
RENDERRESULT Execute( BaseVideoPost * node, VideoPostStruct * vps) { // check if break BaseThread * const bt = vps-> thread ; if (bt && bt-> TestBreak ()) { return RENDERRESULT::OK ; }

延伸阅读

BaseThread::TestBreak
Bool TestBreak(void)
定义: c4d_thread.h:39
RENDERRESULT
RENDERRESULT
定义: ge_prepass.h:409
BaseThread
定义: c4d_thread.h:27
RENDERRESULT::OK
@ OK
Function was successful.
BaseVideoPost
定义: c4d_videopost.h:23
VideoPostStruct
定义: c4d_tools.h:2547
BaseVideoPostStruct::thread
BaseThread * thread
The executing thread. Use thread->TestBreak() to check for a user break.
定义: c4d_videopostdata.h:93

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1