AutoLock Class Reference

#include <c4d_thread.h>

Detailed Description

Has to be embedded in a structure to be protected by AutoLocker. Deprecated.

Note
Needs the keyword mutable.
See also
AutoLocker for an example.

Public Member Functions

void Lock ()
 
void Unlock ()
 

Private Member Functions

Bool AttemptLock ()
 

Private Attributes

maxon::Spinlock _lock
 
Int32 _lockCount
 
Int32 _threadId
 

Member Function Documentation

◆ Lock()

void Lock ( )

◆ Unlock()

void Unlock ( )

◆ AttemptLock()

Bool AttemptLock ( )
private

Member Data Documentation

◆ _lock

maxon::Spinlock _lock
private

◆ _lockCount

Int32 _lockCount
private

◆ _threadId

Int32 _threadId
private