Changeset 20124 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- May 28, 2009 3:40:06 PM (16 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/threadpreempt-r0drv-darwin.cpp
r19919 r20124 123 123 124 124 125 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 126 { 127 /* yes, we think thaat RTThreadPreemptIsPending is reliable... */ 128 return true; 129 } 130 131 125 132 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 126 133 { -
trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsPendingTrusty-r0drv-generic.cpp
r20113 r20124 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - RTThreadPreemptIsPending , Generic ring-0 driver implementation.3 * IPRT - RTThreadPreemptIsPendingTrusty, Generic ring-0 driver implementation. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 200 8Sun Microsystems, Inc.7 * Copyright (C) 2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 *******************************************************************************/ 34 34 #include <iprt/thread.h> 35 #include <iprt/assert.h>36 35 37 36 38 RTDECL(bool) RTThreadPreemptIsPending (RTTHREAD hThread)37 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 39 38 { 40 Assert(hThread == NIL_RTTHREAD);39 /* no, RTThreadPreemptIsPending is not reliable. */ 41 40 return false; 42 41 } -
trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c
r19941 r20124 102 102 103 103 104 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 105 { 106 /* yes, RTThreadPreemptIsPending is reliable. */ 107 return true; 108 } 109 110 104 111 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 105 112 { -
trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp
r19969 r20124 148 148 149 149 150 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 151 { 152 /* RTThreadPreemptIsPending is only reliable of we've got both offsets and size. */ 153 return offQuantumEnd != 0 154 && cbQuantumEnd != 0 155 && offDpcQueueDepth != 0; 156 } 157 158 150 159 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 151 160 { -
trunk/src/VBox/Runtime/r0drv/os2/thread-r0drv-os2.cpp
r19920 r20124 82 82 83 83 84 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 85 { 86 /* yes, RTThreadPreemptIsPending is reliable. */ 87 return true; 88 } 89 90 84 91 RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread) 85 92 { -
trunk/src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c
r19917 r20124 122 122 123 123 124 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 125 { 126 /* yes, RTThreadPreemptIsPending is reliable. */ 127 return true; 128 } 129 130 124 131 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 125 132 { -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r19917 r20124 113 113 114 114 115 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 116 { 117 /* yes, RTThreadPreemptIsPending is reliable. */ 118 return true; 119 } 120 121 115 122 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 116 123 {
Note:
See TracChangeset
for help on using the changeset viewer.