Changeset 388 for trunk/Include/Classes/System/Threading/WaitHandle.ab
- Timestamp:
- Nov 25, 2007, 4:31:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Threading/WaitHandle.ab
r381 r388 38 38 End Sub 39 39 40 OverrideSub Dispose()40 Virtual Sub Dispose() 41 41 Dim hDisposing = InterlockedExchangePointer(h, 0) 42 42 If hDisposing <> 0 Then … … 49 49 End Function 50 50 51 Function WaitOne(millisecondsTimeout As Long, exitContext As B OOL) As Boolean51 Function WaitOne(millisecondsTimeout As Long, exitContext As Boolean) As Boolean 52 52 Return WaitHandle.AfterWait(WaitForSingleObject(h, millisecondsTimeout As DWord), 1) 53 53 End Function … … 80 80 81 81 Public 82 Static Function SignalAndWait(toSignal As WaitHandle, toWaitOn As WaitHandle, millisecondsTimeout As Long, exitContext As B OOL) As Boolean82 Static Function SignalAndWait(toSignal As WaitHandle, toWaitOn As WaitHandle, millisecondsTimeout As Long, exitContext As Boolean) As Boolean 83 83 Dim pSignalObjectAndWait = GetProcAddress(GetModuleHandle("Kernel32.dll"), "SignalObjectAndWait") As Detail.PFNSignalObjectAndWait 84 84 If pSignalObjectAndWait = 0 Then 85 ' PlatformNotSupportedException 86 Debug 87 ExitThread(-1) 85 Throw New PlatformNotSupportedException("WaitHandle.SignalAndWait: This platform doesn't supoort this operation.") 88 86 End If 89 87 Return WaitHandle.AfterWait(pSignalObjectAndWait(toSignal.Handle, toWaitOn.Handle, millisecondsTimeout As DWord, FALSE), 1)
Note:
See TracChangeset
for help on using the changeset viewer.