Honeycomb  0.1
Component-Model Framework
Functions
honey::thread::current Namespace Reference

Operations on current Thread. More...

Functions

void sleep (MonoClock::Duration time)
 Suspend this thread for an amount of time. More...
 
void sleep (MonoClock::TimePoint time)
 Suspend this thread until a specific time. More...
 
bool interruptEnabled ()
 Check whether interrupts are enabled for this thread. More...
 
void interruptPoint ()
 Throw an exception if interrupt is enabled and has been requested in this thread. More...
 
void yield ()
 Give up this thread's time slice to allow other threads to execute. More...
 
void pause ()
 Perform a no-op without giving up this thread's time slice. This no-op momentarily frees resources for other concurrent threads. More...
 
void spin (int count)
 Suspend this thread momentarily without giving up its time slice. The thread will pause count times. More...
 

Detailed Description

Operations on current Thread.

Function Documentation

bool honey::thread::current::interruptEnabled ( )

Check whether interrupts are enabled for this thread.

void honey::thread::current::interruptPoint ( )

Throw an exception if interrupt is enabled and has been requested in this thread.

void honey::thread::current::pause ( )
inline

Perform a no-op without giving up this thread's time slice. This no-op momentarily frees resources for other concurrent threads.

void honey::thread::current::sleep ( MonoClock::Duration  time)

Suspend this thread for an amount of time.

void honey::thread::current::sleep ( MonoClock::TimePoint  time)

Suspend this thread until a specific time.

void honey::thread::current::spin ( int  count)
inline

Suspend this thread momentarily without giving up its time slice. The thread will pause count times.

void honey::thread::current::yield ( )
inline

Give up this thread's time slice to allow other threads to execute.