Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
gts::ThisThread Struct Reference

A set of utilities for the calling thread. More...

#include <Thread.h>

Static Public Member Functions

static GTS_INLINE void yield ()
 Yields to another thread on this CPU. (i.e. SwitchToThread on Win32)
 
static GTS_INLINE void sleepFor (uint32_t milliseconds)
 Yields to another thread in this process. (i.e. Sleep(...) on Win32)
 
static GTS_INLINE ThreadId getId ()
 Gets the current threads ID.
 
static GTS_INLINE void setName (const char *name)
 Sets the name of the thread.
 
static GTS_INLINE bool setAffinity (size_t groupId, AffinitySet const &affinity)
 Sets the processor affinity for the thread and returns the previous affinity.
 
static GTS_INLINE bool setPriority (Thread::Priority priority)
 Sets the priority for the thread.
 

Detailed Description

A set of utilities for the calling thread.