Changeset 33158 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Oct 15, 2010 12:15:13 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66692
- Location:
- trunk/src/VBox/Runtime/r0drv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/semevent-r0drv-darwin.cpp
r33155 r33158 392 392 RTDECL(uint32_t) RTSemEventGetResolution(void) 393 393 { 394 uint32_t cNs = absolutetime_to_nanoseconds(1); 395 if (cNs == 0) 396 cNs = 1; 397 return cNs; 398 } 399 394 uint64_t cNs; 395 absolutetime_to_nanoseconds(1, &cNs); 396 return (uint32_t)cNs ? (uint32_t)cNs : 0; 397 } 398 -
trunk/src/VBox/Runtime/r0drv/darwin/semeventmulti-r0drv-darwin.cpp
r33155 r33158 406 406 RTDECL(uint32_t) RTSemEventMultiGetResolution(void) 407 407 { 408 uint32_t cNs = absolutetime_to_nanoseconds(1); 409 if (cNs == 0) 410 cNs = 1; 411 return cNs; 412 } 413 408 uint64_t cNs; 409 absolutetime_to_nanoseconds(1, &cNs); 410 return (uint32_t)cNs ? (uint32_t)cNs : 0; 411 } 412 -
trunk/src/VBox/Runtime/r0drv/nt/semevent-r0drv-nt.cpp
r33155 r33158 38 38 #include <iprt/mem.h> 39 39 #include <iprt/time.h> 40 #include <iprt/timer.h> 40 41 41 42 #include "internal/magics.h" -
trunk/src/VBox/Runtime/r0drv/nt/semeventmulti-r0drv-nt.cpp
r33155 r33158 38 38 #include <iprt/mem.h> 39 39 #include <iprt/time.h> 40 #include <iprt/timer.h> 40 41 41 42 #include "internal/magics.h"
Note:
See TracChangeset
for help on using the changeset viewer.