HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
threads.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/arch/api.h"
#include "pxr/base/arch/defines.h"
#include <thread>
+ Include dependency graph for threads.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARCH_SPIN_PAUSE()
 ARCH_SPIN_PAUSE – 'pause' on x86, 'yield' on arm. More...
 

Functions

PXR_NAMESPACE_OPEN_SCOPE
ARCH_API bool 
ArchIsMainThread ()
 
ARCH_API std::thread::id ArchGetMainThreadId ()
 

Detailed Description

Architecture-specific thread function calls.

Definition in file threads.h.

Macro Definition Documentation

#define ARCH_SPIN_PAUSE ( )

ARCH_SPIN_PAUSE – 'pause' on x86, 'yield' on arm.

Definition at line 67 of file threads.h.

Function Documentation

ARCH_API std::thread::id ArchGetMainThreadId ( )

Return the std::thread_id for the thread arch considers to be the "main" thread.

PXR_NAMESPACE_OPEN_SCOPE ARCH_API bool ArchIsMainThread ( )

Return true if the calling thread is the main thread, false otherwise.