ROOT  6.06/09
Reference Guide
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
TGWin32ProxyBase Class Reference

Definition at line 23 of file TGWin32ProxyBase.h.

Public Member Functions

 TGWin32ProxyBase ()
 ctor More...
 
virtual ~TGWin32ProxyBase ()
 dtor More...
 
virtual void ExecuteCallBack (Bool_t sync)
 Executes all batched callbacks and the latest callback This method is executed by server thread. More...
 
virtual Double_t GetMilliSeconds ()
 returns elapsed time in milliseconds with microseconds precision More...
 
ULong_t GetId () const
 

Static Public Member Functions

static void Lock ()
 enter critical section More...
 
static void Unlock ()
 leave critical section More...
 
static void GlobalLock ()
 lock any proxy (client thread) More...
 
static void GlobalUnlock ()
 unlock any proxy (client thread) More...
 
static Bool_t IsGloballyLocked ()
 Check the status of the lock. More...
 
static Bool_t Ping ()
 send ping messsage to server thread More...
 

Static Public Attributes

static ULong_t fgPostMessageId = 0
 
static ULong_t fgPingMessageId = 0
 
static ULong_t fgMainThreadId = 0
 
static ULong_t fgUserThreadId = 0
 

Protected Member Functions

virtual Bool_t ForwardCallBack (Bool_t sync)
 if sync is kTRUE: More...
 
virtual void SendExitMessage ()
 send exit message to server thread More...
 

Protected Attributes

TGWin32ProxyBasePrivate * fPimpl
 
Int_t fBatchLimit
 
TListfListOfCallBacks
 
TGWin32CallBack fCallBack
 
voidfParam
 
ULong_t fId
 
Bool_t fIsVirtualX
 

Static Protected Attributes

static UInt_t fMaxResponseTime = 0
 
static Long_t fgLock = 0
 

Friends

class TGWin32
 
class TGWin32GL
 

#include <TGWin32ProxyBase.h>

+ Inheritance diagram for TGWin32ProxyBase:
+ Collaboration diagram for TGWin32ProxyBase:

Constructor & Destructor Documentation

TGWin32ProxyBase::TGWin32ProxyBase ( )

ctor

Definition at line 139 of file TGWin32ProxyBase.cxx.

TGWin32ProxyBase::~TGWin32ProxyBase ( )
virtual

dtor

Definition at line 156 of file TGWin32ProxyBase.cxx.

Member Function Documentation

void TGWin32ProxyBase::ExecuteCallBack ( Bool_t  sync)
virtual

Executes all batched callbacks and the latest callback This method is executed by server thread.

Definition at line 238 of file TGWin32ProxyBase.cxx.

Referenced by TGWin32::GUIThreadMessageFunc().

Bool_t TGWin32ProxyBase::ForwardCallBack ( Bool_t  sync)
protectedvirtual

if sync is kTRUE:

  • post message to main thread.
  • execute callbacks from fListOfCallBacks
  • wait for response else
  • add callback to fListOfCallBacks

returns kTRUE if callback execution is delayed (batched)

Definition at line 265 of file TGWin32ProxyBase.cxx.

ULong_t TGWin32ProxyBase::GetId ( ) const
inline

Definition at line 59 of file TGWin32ProxyBase.h.

Double_t TGWin32ProxyBase::GetMilliSeconds ( )
virtual

returns elapsed time in milliseconds with microseconds precision

Definition at line 210 of file TGWin32ProxyBase.cxx.

void TGWin32ProxyBase::GlobalLock ( )
static

lock any proxy (client thread)

Definition at line 184 of file TGWin32ProxyBase.cxx.

Referenced by TGWin32::CloseDisplay(), and ForwardCallBack().

void TGWin32ProxyBase::GlobalUnlock ( )
static

unlock any proxy (client thread)

Definition at line 193 of file TGWin32ProxyBase.cxx.

Referenced by TGWin32::CloseDisplay(), and TGWin32::GUIThreadMessageFunc().

Bool_t TGWin32ProxyBase::IsGloballyLocked ( )
static

Check the status of the lock.

Definition at line 330 of file TGWin32ProxyBase.cxx.

Referenced by ForwardCallBack(), GlobalLock(), and GlobalUnlock().

void TGWin32ProxyBase::Lock ( )
static

enter critical section

Definition at line 168 of file TGWin32ProxyBase.cxx.

Bool_t TGWin32ProxyBase::Ping ( )
static

send ping messsage to server thread

Definition at line 202 of file TGWin32ProxyBase.cxx.

Referenced by ForwardCallBack().

void TGWin32ProxyBase::SendExitMessage ( )
protectedvirtual

send exit message to server thread

Definition at line 338 of file TGWin32ProxyBase.cxx.

void TGWin32ProxyBase::Unlock ( )
static

leave critical section

Definition at line 176 of file TGWin32ProxyBase.cxx.

Friends And Related Function Documentation

friend class TGWin32
friend

Definition at line 24 of file TGWin32ProxyBase.h.

friend class TGWin32GL
friend

Definition at line 25 of file TGWin32ProxyBase.h.

Member Data Documentation

Int_t TGWin32ProxyBase::fBatchLimit
protected

Definition at line 29 of file TGWin32ProxyBase.h.

Referenced by ForwardCallBack(), and TGWin32ProxyBase().

TGWin32CallBack TGWin32ProxyBase::fCallBack
protected

Definition at line 31 of file TGWin32ProxyBase.h.

Referenced by ExecuteCallBack().

Long_t TGWin32ProxyBase::fgLock = 0
staticprotected

Definition at line 36 of file TGWin32ProxyBase.h.

Referenced by GlobalLock(), GlobalUnlock(), and IsGloballyLocked().

ULong_t TGWin32ProxyBase::fgMainThreadId = 0
static
ULong_t TGWin32ProxyBase::fgPingMessageId = 0
static

Definition at line 43 of file TGWin32ProxyBase.h.

Referenced by TGWin32::GUIThreadMessageFunc(), Ping(), and TGWin32ProxyBase().

ULong_t TGWin32ProxyBase::fgPostMessageId = 0
static
ULong_t TGWin32ProxyBase::fgUserThreadId = 0
static
ULong_t TGWin32ProxyBase::fId
protected

Definition at line 33 of file TGWin32ProxyBase.h.

Referenced by GetId(), and TGWin32ProxyBase().

Bool_t TGWin32ProxyBase::fIsVirtualX
protected
TList* TGWin32ProxyBase::fListOfCallBacks
protected
UInt_t TGWin32ProxyBase::fMaxResponseTime = 0
staticprotected
void* TGWin32ProxyBase::fParam
protected

Definition at line 32 of file TGWin32ProxyBase.h.

TGWin32ProxyBasePrivate* TGWin32ProxyBase::fPimpl
protected

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