Changeset 32504 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 15, 2010 10:12:38 AM (14 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/RTTimerCreate-generic.cpp
r28800 r32504 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2010 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 42 42 { 43 43 rc = RTTimerStart(*ppTimer, 0); 44 if (RT_SUCCESS(rc)) 45 return rc; 46 int rc2 = RTTimerDestroy(*ppTimer); AssertRC(rc2); 47 *ppTimer = NULL; 44 if (RT_FAILURE(rc)) 45 { 46 int rc2 = RTTimerDestroy(*ppTimer); AssertRC(rc2); 47 *ppTimer = NULL; 48 } 48 49 } 49 50 return rc; -
trunk/src/VBox/Runtime/generic/timer-generic.cpp
r28800 r32504 325 325 RT_EXPORT_SYMBOL(RTTimerReleaseSystemGranularity); 326 326 327 328 RTDECL(bool) RTTimerCanDoHighResolution(void) 329 { 330 return false; 331 } 332 RT_EXPORT_SYMBOL(RTTimerCanDoHighResolution); -
trunk/src/VBox/Runtime/r0drv/freebsd/timer-r0drv-freebsd.c
r18972 r32504 268 268 } 269 269 270 271 RTDECL(bool) RTTimerCanDoHighResolution(void) 272 { 273 return false; 274 } 275 -
trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
r32485 r32504 972 972 RT_EXPORT_SYMBOL(RTTimerReleaseSystemGranularity); 973 973 974 975 RTDECL(bool) RTTimerCanDoHighResolution(void) 976 { 977 #ifdef RT_USE_LINUX_HRTIMER 978 return true; 979 #else 980 return false; 981 #endif 982 } 983 RT_EXPORT_SYMBOL(RTTimerCanDoHighResolution); 984 -
trunk/src/VBox/Runtime/r0drv/nt/timer-r0drv-nt.cpp
r28800 r32504 445 445 } 446 446 447 448 RTDECL(bool) RTTimerCanDoHighResolution(void) 449 { 450 return false; 451 } 452 -
trunk/src/VBox/Runtime/r0drv/os2/timer-r0drv-os2.cpp
r20374 r32504 372 372 } 373 373 374 375 RTDECL(bool) RTTimerCanDoHighResolution(void) 376 { 377 return false; 378 } 379 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c
r29284 r32504 254 254 } 255 255 256 257 RTDECL(bool) RTTimerCanDoHighResolution(void) 258 { 259 return true; 260 } 261
Note:
See TracChangeset
for help on using the changeset viewer.