Data Structures | Typedefs | Functions
ai_critsec.h File Reference

Critical section type that helps when writing multi-platform threaded code. More...

#include "ai_api.h"
#include "ai_stats.h"
#include <mutex>

Go to the source code of this file.

Data Structures

class  AtProfiledLockable< Mutex >
 Wrapper for Lockable type mutexes, such as std::mutex and std::recursive_mutex. More...
 

Typedefs

using AtMutex = AtProfiledLockable< std::mutex >
 Convenience type aliases. More...
 
using AtRecursiveMutex = AtProfiledLockable< std::recursive_mutex >
 
typedef void * AtCritSec
 Opaque data type for a critical section.
 

Functions

AI_API AI_DEPRECATED void AiCritSecInit (AtCritSec *cs)
 Initializes a critical section variable. More...
 
AI_API AI_DEPRECATED void AiCritSecInitRecursive (AtCritSec *cs)
 Initializes a recursive critical section variable. More...
 
AI_API AI_DEPRECATED void AiCritSecClose (AtCritSec *cs)
 Releases all resources used by a critical section variable, so it cannot be used again. More...
 
AI_API AI_DEPRECATED void AiCritSecEnter (AtCritSec *cs)
 Enters a critical section. More...
 
AI_API AI_DEPRECATED void AiCritSecLeave (AtCritSec *cs)
 Leaves a critical section. More...
 

Detailed Description

Critical section type that helps when writing multi-platform threaded code.

Typedef Documentation

using AtMutex = AtProfiledLockable<std::mutex>

Convenience type aliases.

See AtProfiledLockable


© 2020 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com