c4d_thread.h File Reference

Classes

class   BaseThread
class   C4DThread
class   AutoLock
class   AutoLocker
class   AutoRWLock
class   AutoRWLocker

函数

Int32   GeGetCurrentThreadCount (void)
void  GeThreadLock (void)
void  GeThreadUnlock (void)
THREADTYPE   IdentifyThread ( BaseThread *bt)
UInt32   GeGetCurrentThreadId ()
BaseThread GeGetCurrentThread ()
BaseThread GeGetDummyThread ()
BaseThread GeGetEscTestThread ()
maxon::ThreadRef   MaxonConvert ( BaseThread *thread)
BaseThread MaxonConvert (const maxon::ThreadRef &thread)
BaseThread MaxonConvert (const maxon::ThreadInterface *thread)

Function Documentation

◆  GeGetCurrentThreadCount()

Int32 GeGetCurrentThreadCount ( void  )

Retrieves the number of threads being used for the current (render) context.

注意
This might be smaller than the actual CPU core or thread count if the user selected a custom number of render threads.
返回
The number of threads being used for the current context.

◆  GeThreadLock()

void GeThreadLock ( void  )

A global semaphore. When this is locked, any other thread trying to acquire the lock will have to wait. Other threads will continue. Deprecated .

警告
As this blocks all threads it should only be used if and when necessary, a local semaphore is a more elegant and efficient solution to multiple thread data access.

◆  GeThreadUnlock()

void GeThreadUnlock ( void  )

Continues blocked threads after a call to GeThreadLock() . Deprecated .

◆  IdentifyThread()

THREADTYPE IdentifyThread ( BaseThread bt )

Identifies the type of a thread.

参数
[in] bt The thread to identify. The caller owns the pointed thread.
返回
The thread type: THREADTYPE

◆  GeGetCurrentThreadId()

UInt32 GeGetCurrentThreadId ( )

Retrieves a unique ID for the current thread.

注意
Usually you do not have to care about this.
返回
The unique ID for the current thread.

◆  GeGetCurrentThread()

BaseThread * GeGetCurrentThread ( )

Retrieves the current thread.

返回
The current thread.

◆  GeGetDummyThread()

BaseThread * GeGetDummyThread ( )

Returns a dummy thread (TestBreak() will always return false ).

由于
R17.032
返回
A pointer to a dummy thread (guaranteed to be valid).

◆  GeGetEscTestThread()

BaseThread * GeGetEscTestThread ( )

Returns a dummy thread for escape key testing (TestBreak() will return true , when the user presses the Esc key).

由于
R17.032
返回
A pointer to an escape key test thread (guaranteed to be valid).

◆  MaxonConvert() [1/3]

maxon::ThreadRef MaxonConvert ( BaseThread thread )

◆  MaxonConvert() [2/3]

BaseThread * MaxonConvert ( const maxon::ThreadRef thread )

◆  MaxonConvert() [3/3]

BaseThread * MaxonConvert ( const maxon::ThreadInterface thread )