Home You are here: Home > Support > Reference v1.0

Change language: German

XmThreadLocals Class Reference

List of all members.

Detailed Description

Store local thread data, which can be accessed global within the thread.

Each thread using dialogs should have its own instance of XmThreadLocals, which should be registered with RegisterThreadLocals() after construction.

The thread locals of a thread can be retrieved by calling ThreadLocals() within the thread.


Public Member Functions

XmThreadObserver & cb () const
 Return the system callback attached to the thread.
XmDialogDlg () const
 Return the current dialog attached to the thread.
 XmThreadLocals ()
 Only one instance should be contsructed and registered for each thread.
void SetThreadObserver (XmThreadObserver &iCallback)
 Set the system callback for the current thread.
void SetCurDlg (XmDialog &dlg)
 Set the current dialog within the current thread.
bool RegisterThreadLocals ()
 Register the instance of XmThreadLocals for the calling thread.


Member Function Documentation

XmThreadObserver& cb  )  const [inline]
 

Return the system callback attached to the thread.

Each thread should have only one system callback.

XmDialog& Dlg  )  const [inline]
 

Return the current dialog attached to the thread.

Each call of a modal dialog set a new current dialog, which will be returned by this function. If a modal dialog close, the last dialog reference will be restored.


Copyright © 2006 Praetz Software Development - www.exomware.com