Honeycomb  0.1
Component-Model Framework
Classes | Namespaces | Functions
Thread.h File Reference
#include "Honey/Misc/Exception.h"
#include "Honey/Chrono/Clock.h"
#include "Honey/Thread/platform/Thread.h"
Include dependency graph for Thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  honey::thread::Local< T >
 Local thread storage. Multiple threads can access one Local object, but each thread will only see its own separate "local" instance. More...
 
struct  honey::thread::Interrupted
 Interrupted exception. More...
 
struct  honey::thread::InterruptEnable
 Enable / disable interrupts in the current thread's scope. More...
 
class  honey::Thread
 Thread class. More...
 

Namespaces

 honey
 Global Honeycomb namespace.
 
 honey::thread
 Thread util.
 
 honey::thread::current
 Operations on current Thread.
 

Functions

void honey::thread::current::yield ()
 Give up this thread's time slice to allow other threads to execute. More...
 
void honey::thread::current::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 honey::thread::current::sleep (MonoClock::Duration time)
 Suspend this thread for an amount of time. More...
 
void honey::thread::current::sleep (MonoClock::TimePoint time)
 Suspend this thread until a specific time. More...
 
void honey::thread::current::spin (int count)
 Suspend this thread momentarily without giving up its time slice. The thread will pause count times. More...
 
bool honey::thread::current::interruptEnabled ()
 Check whether interrupts are enabled for this thread. More...
 
void honey::thread::current::interruptPoint ()
 Throw an exception if interrupt is enabled and has been requested in this thread. More...