Pixar Arch 0.25.8
Loading...
Searching...
No Matches
threads.h File Reference

Architecture-specific thread function calls. More...

#include "pxr/arch/pxr.h"
#include "pxr/arch/api.h"
#include "pxr/arch/defines.h"
#include <thread>

Go to the source code of this file.

Namespaces

namespace  pxr

Macros

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

Functions

bool pxr::ArchIsMainThread ()
 Return true if the calling thread is the main thread, false otherwise.
std::thread::id pxr::ArchGetMainThreadId ()
 Return the std::thread_id for the thread arch considers to be the "main" thread.

Detailed Description

Architecture-specific thread function calls.

Macro Definition Documentation

◆ ARCH_SPIN_PAUSE

#define ARCH_SPIN_PAUSE ( )

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