Changeset 40806 in vbox for trunk/src/VBox/HostDrivers/Support/os2
- Timestamp:
- Apr 6, 2012 9:05:19 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77321
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/os2/SUPDrv-os2.cpp
r37249 r40806 108 108 * Initialize the session hash table. 109 109 */ 110 rc = RTSpinlockCreate(&g_Spinlock );110 rc = RTSpinlockCreate(&g_Spinlock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "VBoxDrvOS2"); 111 111 if (RT_SUCCESS(rc)) 112 112 { … … 160 160 */ 161 161 unsigned iHash = SESSION_HASH(sfn); 162 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 163 RTSpinlockAcquireNoInts(g_Spinlock, &Tmp); 162 RTSpinlockAcquire(g_Spinlock); 164 163 pSession->pNextHash = g_apSessionHashTab[iHash]; 165 164 g_apSessionHashTab[iHash] = pSession; 166 RTSpinlockReleaseNoInts(g_Spinlock , &Tmp);165 RTSpinlockReleaseNoInts(g_Spinlock); 167 166 } 168 167 … … 182 181 const RTPROCESS Process = RTProcSelf(); 183 182 const unsigned iHash = SESSION_HASH(sfn); 184 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 185 RTSpinlockAcquireNoInts(g_Spinlock, &Tmp); 183 RTSpinlockAcquire(g_Spinlock); 186 184 187 185 pSession = g_apSessionHashTab[iHash]; … … 214 212 } 215 213 } 216 RTSpinlockReleaseNoInts(g_Spinlock , &Tmp);214 RTSpinlockReleaseNoInts(g_Spinlock); 217 215 if (!pSession) 218 216 { … … 234 232 * Find the session. 235 233 */ 236 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;237 234 const RTPROCESS Process = RTProcSelf(); 238 235 const unsigned iHash = SESSION_HASH(sfn); 239 236 PSUPDRVSESSION pSession; 240 237 241 RTSpinlockAcquire NoInts(g_Spinlock, &Tmp);238 RTSpinlockAcquire(g_Spinlock); 242 239 pSession = g_apSessionHashTab[iHash]; 243 240 if (pSession && pSession->Process != Process) … … 248 245 || pSession->Process != Process)); 249 246 } 250 RTSpinlockReleaseNoInts(g_Spinlock , &Tmp);247 RTSpinlockReleaseNoInts(g_Spinlock); 251 248 if (RT_UNLIKELY(!pSession)) 252 249 { … … 268 265 * Find the session. 269 266 */ 270 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;271 267 const RTPROCESS Process = RTProcSelf(); 272 268 const unsigned iHash = SESSION_HASH(sfn); 273 269 PSUPDRVSESSION pSession; 274 270 275 RTSpinlockAcquire NoInts(g_Spinlock, &Tmp);271 RTSpinlockAcquire(g_Spinlock); 276 272 pSession = g_apSessionHashTab[iHash]; 277 273 if (pSession && pSession->Process != Process) … … 282 278 || pSession->Process != Process)); 283 279 } 284 RTSpinlockReleaseNoInts(g_Spinlock , &Tmp);280 RTSpinlockReleaseNoInts(g_Spinlock); 285 281 if (!pSession) 286 282 {
Note:
See TracChangeset
for help on using the changeset viewer.