~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Runtime/r0drv/os2/timer-r0drv-os2.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: timer-r0drv-os2.cpp $ */
 
1
/* $Id: timer-r0drv-os2.cpp 33540 2010-10-28 09:27:05Z vboxsync $ */
2
2
/** @file
3
3
 * IPRT - Memory Allocation, Ring-0 Driver, OS/2.
4
4
 */
62
62
    /** Flag indicating the timer is suspended. */
63
63
    uint8_t volatile        fSuspended;
64
64
    /** Cleared at the start of timer processing, set when calling pfnTimer.
65
 
     * If any timer changes occures while doing the callback this will be used to resume the cycle. */
 
65
     * If any timer changes occurs while doing the callback this will be used to resume the cycle. */
66
66
    bool                    fDone;
67
67
    /** Callback. */
68
68
    PFNRTTIMER              pfnTimer;
108
108
 
109
109
 
110
110
 
111
 
RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, unsigned fFlags, PFNRTTIMER pfnTimer, void *pvUser)
 
111
RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, uint32_t fFlags, PFNRTTIMER pfnTimer, void *pvUser)
112
112
{
113
113
    *ppTimer = NULL;
114
114
 
236
236
        return VERR_TIMER_ACTIVE;
237
237
 
238
238
    /*
239
 
     * Calc when it should start fireing and give the thread a kick so it get going.
 
239
     * Calc when it should start firing and give the thread a kick so it get going.
240
240
     */
241
241
    u64First += RTTimeNanoTS();
242
242
 
288
288
}
289
289
 
290
290
 
 
291
RTDECL(int) RTTimerChangeInterval(PRTTIMER pTimer, uint64_t u64NanoInterval)
 
292
{
 
293
    if (!rtTimerIsValid(pTimer))
 
294
        return VERR_INVALID_HANDLE;
 
295
 
 
296
    return VERR_NOT_SUPPORTED;
 
297
}
 
298
 
 
299
 
291
300
DECLASM(void) rtTimerOs2Tick(void)
292
301
{
293
302
    /*
371
380
    return VERR_NOT_SUPPORTED;
372
381
}
373
382
 
 
383
 
 
384
RTDECL(bool) RTTimerCanDoHighResolution(void)
 
385
{
 
386
    return false;
 
387
}
 
388