Changeset 663 for trunk/src


Ignore:
Timestamp:
Aug 24, 1999, 6:12:04 PM (26 years ago)
Author:
phaller
Message:

Fix: started reimplementation of OS2Timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/os2timer.cpp

    r588 r663  
    1 /* $Id: os2timer.cpp,v 1.5 1999-08-19 18:46:05 phaller Exp $ */
     1/* $Id: os2timer.cpp,v 1.6 1999-08-24 16:12:04 phaller Exp $ */
    22
    33/*
     
    2626
    2727
     28
     29/****************************************************************************
     30 * Structures                                                               *
     31 ****************************************************************************/
     32
     33#if 0
     34//@@@PH started new implementation
     35typedef struct _MMTIMEREVENT
     36{
     37  struct _MMTIMEREVENT* prev;
     38  struct _MMTIMEREVENT* next;
     39
     40  DWORD           id;                    // event id
     41  DWORD           timeScheduled;         // system time to fire event
     42  DWORD           timePeriod;            // period if periodic event
     43  TID             tidCaller;             // thread ID of caller thread
     44  DWORD           dwUser;                // user supplied value
     45  LPTIMERCALLBACK lpCallback;            // address to call
     46  DWORD           dwFlags;               // event flags
     47} MMTIMEREVENT, *PMMTIMEREVENT, *LPTIMEREVENT;
     48
     49typedef struct _MMTIMERRESOLUTION
     50{
     51  struct _MMTIMERRESOLUTION* prev;
     52  struct _MMTIMERRESOLUTION* next;
     53
     54  DWORD  dwResolution;                   // requested resolution for block
     55} MMTIMERRESOLUTION, *PMMTIMERRESOLUTION, *LPMMTIMERRESOLUTION;
     56
     57/*
     58  enterResolutionScope
     59  leaveResolutionScope
     60
     61  addEvent
     62  removeEvent
     63  rescheduleEvent
     64  callbackCaller
     65*/
     66#endif
     67
     68/****************************************************************************
     69 * Local Prototypes                                                         *
     70 ****************************************************************************/
     71
    2872static void _Optlink TimerHlpHandler(void *);
     73
     74
    2975
    3076
     
    145191////        WriteLog("T");
    146192#endif
     193        // @@@PH: we're calling the client with PRTYC_TIMECRITICAL !!!
     194        //        It'd be much nicer to call with original priority!
     195        // @@@PH: plus the original thread is supposed to stop while the
     196        //        time event is scheduled (DosSuspendThread()) ? It's
     197        //        much like raising a signal (SIGALARM)
    147198        clientCallback((UINT)this, 0, userData, 0, 0);
    148199    }
Note: See TracChangeset for help on using the changeset viewer.