API Guides > ConceptRT 3.x
ServiceControllerThread Class Reference

Thread class for service controller. More...

Detailed Description

Thread class for service controller.

+ Inheritance diagram for ServiceControllerThread:

Public Member Methods

 ServiceControllerThread (Int32 stackSize=DefaultStackSize)
 Constructor. More...
 
void Initialize (BaseServiceController &owner)
 Initialization of the service controller thread. More...
 
void Execute ()
 The execution of the tread. More...
 
void RequestTerminate ()
 Ask the termination of the service thread. More...
 
- Public Member Methods inherited from Thread
 Thread (Int32 stackSize=DefaultStackSize)
 Constructor. More...
 
 Thread (PCChar8 name, Int32 stackSize=DefaultStackSize)
 Constructor. More...
 
void SetName (PCChar8 name)
 Sets the thread name. More...
 
virtual ~Thread ()
 Destructor. More...
 
const StringGetName ()
 Gets the thread name. More...
 
void Suspend ()
 Suspends the thread. More...
 
void Resume ()
 Resumes the thread. More...
 
Int32 GetThreadID ()
 Gets the thread identifier. More...
 
bool WaitFor (TimeSpan timeOut=TimeInfinite)
 Wait for. More...
 
bool GetIsTerminated ()
 Query if the thread is suspended. More...
 
bool GetIsSuspended ()
 Query if the thread is suspended. More...
 
bool GetIsCurrentThread ()
 Query if this object is current thread. More...
 
void CheckCurrentThread ()
 Check current thread. Check if a the caller of a method of this thread is done outside the owning thread. If not exception is raised. More...
 
Int32 GetStackSize ()
 Gets the stack size. More...
 
Int32 GetStackUsed ()
 Gets the stack used. More...
 
Int32 GetStackAvailable ()
 Gets the stack availability. More...
 
void SetPriority (ThreadPriority priority)
 Sets the priority. More...
 
ThreadPriority GetPriority ()
 Gets the priority. More...
 
bool GetIsTimeCritical ()
 Query if is it a time critical thread. More...
 
void SetIsTimeCritical (bool value)
 Sets the thread as time critical. More...
 
void SetHasViolatedTimeCritical ()
 Sets the flag saying that it has violated its time critical feature. More...
 
bool HasViolatedTimeCritical ()
 Query if the tread has violated its time critical feature. More...
 
void ResetHasViolatedTimeCritical ()
 Reset the flag saying that it has violated its time critical feature. More...
 
bool GetIsAllowedBlockingCode ()
 Query if the thread has the permission to call blocking code. More...
 
void SetBlockingCodePermission (bool permission)
 Sets the thread permission to call blocking code. More...
 
void SetHasViolatedBlockingCodePermission ()
 Sets the flag saying that it has violated its blocking code permission. More...
 
bool HasViolatedBlockingCodePermission ()
 Query if the tread has violated its blocking code permission. More...
 
void ResetHasViolatedBlockingCodePermission ()
 Reset the flag saying that it has violated its blocking code permission. More...
 
void SetThreadListener (IThreadSectionWaitListener &threadListener)
 Sets the thread listener. More...
 
IThreadSectionWaitListenerGetThreadListener ()
 Gets the thread listener. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Thread
void InternalExecute ()
 Internal execution and preparation of the thread before executing Execute. More...
 

Constructor & Destructor Documentation

Constructor.

Parameters
stackSize(optional) size of the stack. Default = DefaultStackSize.

Methods Documentation

void Execute ( )
virtual

The execution of the tread.

This method is called once the thread is Resumed, initialized and ready to execute.

Implements Thread.

void Initialize ( BaseServiceController owner)

Initialization of the service controller thread.

Parameters
owner[in, out] Owner of the thread. For call back purpose.
Warning
Call order dependence : Should be called before Resume.
void RequestTerminate ( )

Ask the termination of the service thread.