Spinning Topp Logo BlackTopp Studios
inc
Functions
Mezzanine::Threading::this_thread Namespace Reference

A partial implementation of std::thread::this_thread. More...

Functions

ThreadId MEZZ_LIB get_id ()
 Return the thread ID of the calling thread. More...
 
void MEZZ_LIB sleep_for (UInt32 MicroSeconds)
 Blocks the calling thread for a period of time. More...
 
void MEZZ_LIB yield ()
 Yield execution to another thread. More...
 

Detailed Description

A partial implementation of std::thread::this_thread.

Function Documentation

ThreadId MEZZ_LIB Mezzanine::Threading::this_thread::get_id ( )

Return the thread ID of the calling thread.

Returns
A thread::id unique to this thread.
void MEZZ_LIB Mezzanine::Threading::this_thread::sleep_for ( UInt32  MicroSeconds)

Blocks the calling thread for a period of time.

Parameters
MicroSecondsMinimum time to put the thread to sleep.

Blocks the calling thread for a period of time.

Parameters
MicroSecondsthe amount of micro seconds.

Definition at line 181 of file consolelogic.cpp.

void MEZZ_LIB Mezzanine::Threading::this_thread::yield ( )

Yield execution to another thread.

Offers the operating system the opportunity to schedule another thread that is ready to run on the current processor.