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

« back to all changes in this revision

Viewing changes to src/VBox/Runtime/r3/posix/timer-posix.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-posix.cpp $ */
 
1
/* $Id: timer-posix.cpp 33540 2010-10-28 09:27:05Z vboxsync $ */
2
2
/** @file
3
3
 * IPRT - Timer, POSIX.
4
4
 */
113
113
                                * we (might) have code assuming that signals doesn't screw around
114
114
                                * on existing threads. (It would be sufficient to have one thread
115
115
                                * per signal of course since the signal will be masked while it's
116
 
                                * running, however, it may just cause more compilcations than its
 
116
                                * running, however, it may just cause more complications than its
117
117
                                * worth - sigwait/sigwaitinfo work atomically anyway...)
118
118
                                * Also, must block the signal in the thread main procedure too. */
119
119
    /** The timer thread. */
149
149
#ifdef IPRT_WITH_POSIX_TIMERS
150
150
 
151
151
/**
152
 
 * RTOnce callback that initalizes the critical section.
 
152
 * RTOnce callback that initializes the critical section.
153
153
 *
154
154
 * @returns RTCritSectInit return code.
155
 
 * @param   pvUser1     NULL, ignopred.
156
 
 * @param   pvUser2     NULL, ignopred.
 
155
 * @param   pvUser1     NULL, ignored.
 
156
 * @param   pvUser2     NULL, ignored.
157
157
 *
158
158
 */
159
159
static DECLCALLBACK(int) rtTimerOnce(void *pvUser1, void *pvUser2)
396
396
}
397
397
 
398
398
 
399
 
RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, unsigned fFlags, PFNRTTIMER pfnTimer, void *pvUser)
 
399
RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, uint32_t fFlags, PFNRTTIMER pfnTimer, void *pvUser)
400
400
{
401
401
    /*
402
402
     * We don't support the fancy MP features.
810
810
    return rc;
811
811
}
812
812
 
 
813
 
 
814
RTDECL(int) RTTimerChangeInterval(PRTTIMER pTimer, uint64_t u64NanoInterval)
 
815
{
 
816
    AssertPtrReturn(pTimer, VERR_INVALID_POINTER);
 
817
    AssertReturn(pTimer->u32Magic == RTTIMER_MAGIC, VERR_INVALID_MAGIC);
 
818
    return VERR_NOT_SUPPORTED;
 
819
}
 
820