- Timestamp:
- Aug 20, 2008, 3:37:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Threading/EventWaitHandle.ab
r494 r599 11 11 Class EventWaitHandle 12 12 Inherits System.Threading.WaitHandle 13 13 Private 14 Sub EventWaitHandle() 15 End Sub 14 16 Public 15 17 Sub EventWaitHandle (initialState As Boolean, mode As EventResetMode) … … 54 56 既存の名前付き同期イベントを開きます。 55 57 */ 56 Static Function OpenExisting(name As String) As WaitHandle 57 This.Handle(OpenEvent(EVENT_ALL_ACCESS,FALSE,ToTCStr(name))) 58 Static Function OpenExisting(name As String) As EventWaitHandle 59 If ActiveBasic.IsNothing(name) Then 60 Throw New ArgumentNullException("name") 61 Else If name.Length = 0 Then 62 Throw New ArgumentException("name") 63 End If 64 OpenExisting = New EventWaitHandle 65 Dim h = OpenEvent(EVENT_ALL_ACCESS, FALSE, ToTCStr(name)) 66 If h = 0 Then 67 IO.Detail.ThrowWinLastErrorIOException("OpenEvent failed.") 68 End If 69 OpenExisting.Handle = h 58 70 End Function 59 71 … … 95 107 WaitHandle から継承 96 108 Handle 97 SafeWaitHandle 109 SafeWaitHandle 98 110 */ 99 111
Note:
See TracChangeset
for help on using the changeset viewer.