commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::ThreadContext Class Reference

#include <Thread.h>

Public Member Functions

 ThreadContext ()
 
 ~ThreadContext ()
 
void * get_value ()
 
bool set_value (void *v)
 
bool is_valid () const
 
bool isValid () const
 
bool is_used () const
 
bool isUsed () const
 

Detailed Description

Simple Thread Context commore implementation Allow to manage private thread data

Constructor & Destructor Documentation

ThreadContext::ThreadContext ( )
ThreadContext::~ThreadContext ( )

Member Function Documentation

void * ThreadContext::get_value ( )
Returns
pointer to thread context data
Remarks
must be call inside run method
bool ThreadContext::is_used ( ) const
Returns
true if thread context value is set
bool ThreadContext::is_valid ( ) const
Returns
true if thread context is valid
bool ThreadContext::isUsed ( ) const
bool ThreadContext::isValid ( ) const
bool ThreadContext::set_value ( void *  v)

Asociate data to thread context

Returns
true if thread context is valid
Remarks
must be call inside run method

The documentation for this class was generated from the following files: