Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib.sysdep.win.whrt
(lib.sysdep.win.whrt globals)

   in counter.h
   in hpet.h
   in pit.h
   in pmt.h
   in qpc.h
   in tgt.h
   in tsc.h
   in whrt.h
   in pit.h
   in pmt.h
   in counter.cpp
   in counter.cpp
   in hpet.cpp
   in pmt.cpp
   in tgt.cpp
   in tsc.cpp
   in whrt.cpp

(lib.sysdep.win.whrt globals)


Field Summary
 static const u64 CAP_SIZE64
          See hpet.cpp
 static const u64 CONFIG_ENABLE
          See hpet.cpp
 static ICounter* counter
          See whrt.cpp
 static uint counterBits
          See whrt.cpp
 static u64 counterMask
          See whrt.cpp
 static HANDLE hExitEvent
          See whrt.cpp
 static HANDLE hUpdateThread
          See whrt.cpp
 static double nominalFrequency
          See whrt.cpp
 static const UINT PERIOD_MS
          ========================================================================= File : tgt.
 static const i64 PIT_FREQ
          ========================================================================= File : pit.
 static const i64 PMT_FREQ
          ========================================================================= File : pmt.
 static double resolution
          See whrt.cpp
 static TimerState[ 2 ] timerStates
          See whrt.cpp
 static const u32 TMR_VAL_EXT
          See pmt.cpp
 static TimerState* volatile ts
          See whrt.cpp
 static TimerState* volatile ts2
          See whrt.cpp
 static const DWORD UPDATE_INTERVAL_MS
          See whrt.cpp
 
Method Summary
 static inline LibError ActivateCounter( ICounter* counter )
          See whrt.cpp
 static ICounter* ConstructCounterAt( uint id, void* address, size_t& size )
          
 static inline u64 Counter()
          See whrt.cpp
 static inline u64 CounterDelta( u64 oldCounter, u64 newCounter )
          
 ICounter* CreateCounter( uint id )
          See counter.cpp
 void DestroyCounter( ICounter*& counter )
          See counter.cpp
 static ICounter* GetNextBestSafeCounter()
          
 static void InitCounter()
          See whrt.cpp
 static inline LibError InitUpdateThread()
          See whrt.cpp
 static bool IsThrottlingPossible()
          See tsc.cpp
 static void ShutdownCounter()
          See whrt.cpp
 static inline void ShutdownUpdateThread()
          See whrt.cpp
 static unsigned __stdcall UpdateThread( void* UNUSED( data ) )
          See whrt.cpp
 static void UpdateTimerState()
          See whrt.cpp
 static LibError whrt_Init()
          See whrt.cpp
 double whrt_Resolution()
          See whrt.cpp
 static LibError whrt_Shutdown()
          See whrt.cpp
 double whrt_Time()
          See whrt.cpp
  WINIT_REGISTER_EARLY_INIT2( whrt_Init )
          ========================================================================= File : whrt.
  WINIT_REGISTER_LATE_SHUTDOWN( whrt_Shutdown )
          See whrt.cpp
 
Symbol Summary
 #define INCLUDED_COUNTER
          See counter.h
 #define INCLUDED_HPET
          See hpet.h
 #define INCLUDED_PIT
          See pit.h
 #define INCLUDED_PMT
          See pmt.h
 #define INCLUDED_QPC
          See qpc.h
 #define INCLUDED_TGT
          See tgt.h
 #define INCLUDED_TSC
          See tsc.h
 #define INCLUDED_WHRT
          See whrt.h
 
Macro Summary
 #define CREATE(implsize) = sizeof(Counter##impl)return new(address) Counter##impl()
          See counter.cpp
 

Field Detail

CAP_SIZE64

 static const u64 CAP_SIZE64;
See hpet.cpp.

CONFIG_ENABLE

 static const u64 CONFIG_ENABLE;
See hpet.cpp.

counter

 static ICounter* counter;
See whrt.cpp.

counterBits

 static uint counterBits;
See whrt.cpp.

counterMask

 static u64 counterMask;
See whrt.cpp.

hExitEvent

 static HANDLE hExitEvent;
See whrt.cpp.

hUpdateThread

 static HANDLE hUpdateThread;
See whrt.cpp.

nominalFrequency

 static double nominalFrequency;
See whrt.cpp.

PERIOD_MS

 static const UINT PERIOD_MS;
========================================================================= File : tgt.cpp Project : 0 A.D. Description : Timer implementation using timeGetTime =========================================================================
See tgt.cpp.

PIT_FREQ

 static const i64 PIT_FREQ;
========================================================================= File : pit.h Project : 0 A.D. Description : Timer implementation using 82C53/4 PIT =========================================================================
See pit.h.

PMT_FREQ

 static const i64 PMT_FREQ;
========================================================================= File : pmt.h Project : 0 A.D. Description : Timer implementation using ACPI PM timer =========================================================================
See pmt.h.

resolution

 static double resolution;
See whrt.cpp.

timerStates

 static TimerState timerStates[ 2 ];
See whrt.cpp.

TMR_VAL_EXT

 static const u32 TMR_VAL_EXT;
See pmt.cpp.

ts

 static TimerState* volatile ts;
See whrt.cpp.

ts2

 static TimerState* volatile ts2;
See whrt.cpp.

UPDATE_INTERVAL_MS

 static const DWORD UPDATE_INTERVAL_MS;
See whrt.cpp.


Method Detail

ActivateCounter

 static inline LibError ActivateCounter( ICounter* counter );
See whrt.cpp.

ConstructCounterAt

 static ICounter* ConstructCounterAt( uint id, void* address, size_t& size );
Parameters:
size - receives the size [bytes] of the created instance.
See counter.cpp.
Returns:
pointer to a newly constructed ICounter subclass of type at the given address, or 0 iff the ID is invalid.

Counter

 static inline u64 Counter();
See whrt.cpp.

CounterDelta

 static inline u64 CounterDelta( u64 oldCounter, u64 newCounter );
Returns:
difference [ticks], taking rollover into account. (time-critical, so it's not called through ICounter.)
See whrt.cpp.

CreateCounter

 ICounter* CreateCounter( uint id );
See counter.cpp.

DestroyCounter

 void DestroyCounter( ICounter*& counter );
See counter.cpp.

GetNextBestSafeCounter

 static ICounter* GetNextBestSafeCounter();
Returns:
the newly created and unique instance of the next best counter that is deemed safe, or 0 if all have already been created.
See whrt.cpp.

InitCounter

 static void InitCounter();
See whrt.cpp.

InitUpdateThread

 static inline LibError InitUpdateThread();
See whrt.cpp.

IsThrottlingPossible

 static bool IsThrottlingPossible();
See tsc.cpp.

ShutdownCounter

 static void ShutdownCounter();
See whrt.cpp.

ShutdownUpdateThread

 static inline void ShutdownUpdateThread();
See whrt.cpp.

UpdateThread

 static unsigned __stdcall UpdateThread( void* UNUSED( data ) );
See whrt.cpp.

UpdateTimerState

 static void UpdateTimerState();
See whrt.cpp.

whrt_Init

 static LibError whrt_Init();
See whrt.cpp.

whrt_Resolution

 double whrt_Resolution();
See whrt.cpp.

whrt_Shutdown

 static LibError whrt_Shutdown();
See whrt.cpp.

whrt_Time

 double whrt_Time();
See whrt.cpp.

WINIT_REGISTER_EARLY_INIT2

 WINIT_REGISTER_EARLY_INIT2( whrt_Init );
========================================================================= File : whrt.cpp Project : 0 A.D. Description : Windows High Resolution Timer =========================================================================
See whrt.cpp.

WINIT_REGISTER_LATE_SHUTDOWN

 WINIT_REGISTER_LATE_SHUTDOWN( whrt_Shutdown );
See whrt.cpp.


Symbol Detail

INCLUDED_COUNTER

 #define INCLUDED_COUNTER 
See counter.h.

INCLUDED_HPET

 #define INCLUDED_HPET 
See hpet.h.

INCLUDED_PIT

 #define INCLUDED_PIT 
See pit.h.

INCLUDED_PMT

 #define INCLUDED_PMT 
See pmt.h.

INCLUDED_QPC

 #define INCLUDED_QPC 
See qpc.h.

INCLUDED_TGT

 #define INCLUDED_TGT 
See tgt.h.

INCLUDED_TSC

 #define INCLUDED_TSC 
See tsc.h.

INCLUDED_WHRT

 #define INCLUDED_WHRT 
See whrt.h.


Macro Detail

CREATE

 #define CREATE(implsize) = sizeof(Counter##impl);return new(address) Counter##impl();
See counter.cpp.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD