Changeset 405 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 28, 2007 9:31:03 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17976
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile
r403 r405 307 307 r3/posix/thread-posix.cpp \ 308 308 r3/darwin/time-darwin.cpp \ 309 r3/posix/timer-posix.cpp \309 generic/timer-generic.cpp \ 310 310 generic/utf16locale-generic.cpp \ 311 311 r3/posix/utf8-posix.cpp \ 312 312 r3/linux/uuid-linux.cpp \ 313 313 timesup.cpp \ 314 314 315 315 316 -
trunk/src/VBox/Runtime/generic/timer-generic.cpp
r403 r405 82 82 RTDECL(int) RTTimerCreate(PRTTIMER *ppTimer, unsigned uMilliesInterval, PFNRTTIMER pfnTimer, void *pvUser) 83 83 { 84 return RTTimerCreateEx(ppTimer, uMilliesInterval * UINT64_C(1000000), 0, pfnTimer, pvUser); 84 int rc = RTTimerCreateEx(ppTimer, uMilliesInterval * UINT64_C(1000000), 0, pfnTimer, pvUser); 85 if (RT_SUCCESS(rc)) 86 { 87 rc = RTTimerStart(*ppTimer, 0); 88 if (RT_SUCCESS(rc)) 89 return rc; 90 int rc2 = RTTimerDestroy(*ppTimer); AssertRC(rc2); 91 *ppTimer = NULL; 92 } 93 return rc; 85 94 } 86 95
Note:
See TracChangeset
for help on using the changeset viewer.