diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2010-10-15 12:07:44 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2010-10-15 12:07:44 +0000 |
commit | 54519cce67fdd8d2fde6f1992f0c7df08dddc57c (patch) | |
tree | 36be1057a7d681ab2c89c6e325f6117c94b0e7ca /src/VBox/Runtime/r0drv/os2 | |
parent | 6fda83c446cf08fc6eac1ea3be7c1ec0adb46c43 (diff) | |
download | VirtualBox-svn-54519cce67fdd8d2fde6f1992f0c7df08dddc57c.tar.gz |
IPRT: Added RTSemEventGetResolution and RTSemEventMultiGetResolution to r0drv.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@33155 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/r0drv/os2')
-rw-r--r-- | src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp | 6 | ||||
-rw-r--r-- | src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp b/src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp index 5a13ff91a86..7017c4c8338 100644 --- a/src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp +++ b/src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp @@ -231,3 +231,9 @@ RTDECL(int) RTSemEventWaitNoResume(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies) return rtSemEventWait(hEventSem, cMillies, true /* interruptible */); } + +RTDECL(uint32_t) RTSemEventGetResolution(void) +{ + return 32000000; /* 32ms */ +} + diff --git a/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp b/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp index d05634ba2ff..f21f7105f67 100644 --- a/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp +++ b/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp @@ -240,3 +240,9 @@ RTDECL(int) RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI hEventMultiSem, RTMSINT return rtSemEventMultiWait(hEventMultiSem, cMillies, true /* interruptible */); } + +RTDECL(uint32_t) RTSemEventMultiGetResolution(void) +{ + return 32000000; /* 32ms */ +} + |