- Timestamp:
- Aug 24, 2007, 11:14:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/ActiveBasic/Windows/CriticalSection.ab
r297 r303 7 7 8 8 Namespace Detail 9 Const InterlockedExchangeAnyPointer(p, x) = InterlockedExchangePointer( VarPtr(p) AsVoidPtr, x)9 Const InterlockedExchangeAnyPointer(p, x) = InterlockedExchangePointer(ByVal VarPtr(p) As *VoidPtr, x) 10 10 End Namespace 11 11 … … 53 53 54 54 /*Override*/ Sub Dispose() 55 Dim pcs = Detail.InterlockedExchangeAnyPointer(pcs, 0) 56 If pcs <> 0 Then 57 LeaveCriticalSection(ByVal pcs) 55 ' Dim p = ActiveBasic.Windows.Detail.InterlockedExchangeAnyPointer(pcs, 0) 56 Dim p = InterlockedExchangePointer(pcs As VoidPtr, 0) As *CRITICAL_SECTION 57 If p <> 0 Then 58 LeaveCriticalSection(ByVal p) 58 59 End If 59 60 End Sub
Note:
See TracChangeset
for help on using the changeset viewer.