]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/timer.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / src / palmos / timer.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/timer.cpp
ffecfa5a 3// Purpose: wxTimer implementation
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
ffecfa5a
JS
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16 #pragma hdrstop
17#endif
18
19#if wxUSE_TIMER
20
c2ca375c 21#include "wx/palmos/private/timer.h"
c0badb70 22
ffecfa5a 23#ifndef WX_PRECOMP
ffecfa5a 24 #include "wx/list.h"
8ecff181 25 #include "wx/window.h"
ffecfa5a
JS
26 #include "wx/event.h"
27 #include "wx/app.h"
28 #include "wx/intl.h"
29 #include "wx/log.h"
df69528b 30 #include "wx/hashmap.h"
ffecfa5a
JS
31#endif
32
ffecfa5a
JS
33#include "wx/palmos/private.h"
34
35// from utils.cpp
36extern "C" WXDLLIMPEXP_BASE HWND
37wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
38
39// ----------------------------------------------------------------------------
40// private globals
41// ----------------------------------------------------------------------------
42
43// define a hash containing all the timers: it is indexed by timer id and
44// contains the corresponding timer
c2ca375c 45WX_DECLARE_HASH_MAP(unsigned long, wxPalmOSTimerImpl*, wxIntegerHash, wxIntegerEqual,
ffecfa5a
JS
46 wxTimerMap);
47
48static wxTimerMap g_timerMap;
49
50// ----------------------------------------------------------------------------
51// private functions
52// ----------------------------------------------------------------------------
53
54void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD);
55
ffecfa5a
JS
56// ============================================================================
57// implementation
58// ============================================================================
59
60// ----------------------------------------------------------------------------
61// wxTimer class
62// ----------------------------------------------------------------------------
63
c2ca375c 64void wxPalmOSTimerImpl::Init()
ffecfa5a
JS
65{
66}
67
c2ca375c 68wxPalmOSTimerImpl::~wxPalmOSTimerImpl()
ffecfa5a
JS
69{
70}
71
c2ca375c 72bool wxPalmOSTimerImpl::Start(int milliseconds, bool oneShot)
ffecfa5a
JS
73{
74 return false;
75}
76
c2ca375c 77void wxPalmOSTimerImpl::Stop()
ffecfa5a
JS
78{
79}
80
81// ----------------------------------------------------------------------------
82// private functions
83// ----------------------------------------------------------------------------
84
c2ca375c 85void wxProcessTimer(wxPalmOSTimerImpl& timer)
ffecfa5a
JS
86{
87}
88
89void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
90{
91}
92
93#endif // wxUSE_TIMER