Changeset 419 for trunk/Include/Classes/System/Threading
- Timestamp:
- Feb 25, 2008, 5:36:26 AM (17 years ago)
- Location:
- trunk/Include/Classes/System/Threading
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Threading/AutoResetEvent.ab
r417 r419 1 ' Classes/System/Threading/AutoResetEvent.ab 2 3 #ifndef __SYSTEM_THREADING_AUTORESETEVENT_AB__ 4 #define __SYSTEM_THREADING_AUTORESETEVENT_AB__ 1 5 2 6 NameSpace System … … 15 19 End Namespace 16 20 End Namespace 21 22 #endif -
trunk/Include/Classes/System/Threading/EventWaitHandle.ab
r417 r419 1 ' Classes/System/Threading/EventWaitHandle.ab 2 3 #ifndef __SYSTEM_THREADING_EVENTWAITHANDLE_AB__ 4 #define __SYSTEM_THREADING_EVENTWAITHANDLE_AB__ 1 5 2 6 NameSpace System … … 13 17 Public 14 18 Sub EventWaitHandle (initialState As Boolean, mode As EventResetMode) 15 This.Handle =CreateEvent(NULL,mode As BOOL,initialState As BOOL,NULL)19 This.Handle(CreateEvent(NULL,mode As BOOL,initialState As BOOL,NULL)) 16 20 End Sub 17 21 Sub EventWaitHandle (initialState As Boolean, mode As EventResetMode, name As String) 18 This.Handle =CreateEvent(NULL,mode As BOOL,initialState As BOOL,name)22 This.Handle(CreateEvent(NULL,mode As BOOL,initialState As BOOL,ToTCStr(name))) 19 23 End Sub 20 24 Sub EventWaitHandle (initialState As Boolean, mode As EventResetMode, name As String, ByRef createdNew As Boolean) 21 This.Handle =CreateEvent(NULL,mode As BOOL,initialState As BOOL,name)22 If ERROR_ALREADY_EXISTS=GetLastError() Then createdNew=False 25 This.Handle(CreateEvent(NULL,mode As BOOL,initialState As BOOL,ToTCStr(name))) 26 If ERROR_ALREADY_EXISTS=GetLastError() Then createdNew=False Else createdNew=True 23 27 End Sub 24 28 /* Sub EventWaitHandle (initialState As Boolean, mode As EventResetMode, name As String, ByRef createdNew As Boolean, EventWaitHandleSecurity) … … 54 58 */ 55 59 Static Function OpenExisting(name As String) As WaitHandle 60 This.Handle(OpenEvent(EVENT_ALL_ACCESS,FALSE,ToTCStr(name))) 56 61 End Function 57 62 … … 100 105 End Namespace 101 106 End Namespace 107 108 #endif -
trunk/Include/Classes/System/Threading/ManualResetEvent.ab
r417 r419 1 ' Classes/System/Threading/ManualResetEvent.ab 2 3 #ifndef __SYSTEM_THREADING_MANUALRESETEVENT_AB__ 4 #define __SYSTEM_THREADING_MANUALRESETEVENT_AB__ 1 5 2 6 NameSpace System … … 15 19 End Namespace 16 20 End Namespace 21 22 #endif
Note:
See TracChangeset
for help on using the changeset viewer.