BaseThread Class Reference

#include <c4d_thread.h>

详细描述

Main thread base class used internally by Cinema 4D . Deprecated 。使用 maxon::ThreadInterface /JobInterface etc.

注意
Cannot be instantiated.

公共成员函数

Bool   TestBreak (void)
void  End ( Bool wait=true)
Bool   IsRunning (void)

私有成员函数

  BaseThread ()
  ~BaseThread ()

构造函数 & 析构函数文档编制

◆  BaseThread()

BaseThread () private

◆  ~BaseThread()

~ BaseThread () private

成员函数文档编制

◆  TestBreak()

Bool TestBreak ( void  )

Checks if the thread received a break command to stop processing.
Normally this is only true when Cinema 4D is closing, or when End() has been called.

返回
true processing should be terminated, otherwise false .

◆  End()

void End ( Bool   wait = true )

Ends the thread. This function will not return until the thread has completely stopped.

警告
If the thread does not check for TestBreak() then this function will not return until the thread has finished and this might get into a deadlock situation.
参数
[in] wait Determines if thread termination is synchronous or asynchronous:
  • true the function will not return until the thread is finished.
  • false the function returns immediately although the thread will still run until it is finished.

◆  IsRunning()

Bool IsRunning ( void  )

Checks if the thread is running.

返回
true if the thread is running, otherwise false .