AspectThreads Class Template Reference
[Aspect Classes]

new thread of execution More...

Inherited by WidgetButton, WidgetCheckBox, WidgetComboBox, WidgetDataGrid, WidgetDateTimePicker, WidgetGroupBox, WidgetProgressBar, WidgetRadioButton, WidgetStatusBar, WidgetTabSheet, WidgetWindowBase, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyDialogWidget >, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyModalDialogWidget >, and WidgetWindowBase< EventHandlerClass, unUsed >.

List of all members.

Public Member Functions

Utilities::Thread fork (unsigned long(EventHandlerClass::*threadProc)())
 Creates a new thread on the given function.
template<class Param>
Utilities::Thread fork (const Param &par, unsigned long(EventHandlerClass::*threadProc)(Param &))
 Creates a new thread and passes the given parameter.


Detailed Description

template<class EventHandlerClass, class WidgetType, class MessageMapType>
class SmartWin::AspectThreads< EventHandlerClass, WidgetType, MessageMapType >

new thread of execution

E.g. the WidgetWindow have a Threads Aspect to it therefore WidgetWindow realize the AspectThreads through inheritance. Most Widgets realize this Aspect since they can fork the current thread of execution into two threads.


Member Function Documentation

Utilities::Thread fork ( unsigned long(EventHandlerClass::*)()  threadProc  ) 

Creates a new thread on the given function.

Forks execution into a member function. If you wish to later manipulate the thread in some way use the Utilities::Thread class to store the return value of this function.

Utilities::Thread fork ( const Param &  par,
unsigned long(EventHandlerClass::*)(Param &)  threadProc 
)

Creates a new thread and passes the given parameter.

Forks execution into a member function with the given parameter of the given type. If you wish to later manipulate the thread in some way use the Utilities::Thread class to store the return value of this function.

Back to SmartWin website
SourceForge.net Logo