Changeset 419 for trunk/Include/Classes


Ignore:
Timestamp:
Feb 25, 2008, 5:36:26 AM (16 years ago)
Author:
NoWest
Message:

この際なのでWaitHandle系を全部実装

Location:
trunk/Include/Classes
Files:
3 added
4 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__
    15
    26NameSpace System
     
    1519End Namespace
    1620End 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__
    15
    26NameSpace System
     
    1317Public
    1418    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))
    1620    End Sub
    1721    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)))
    1923    End Sub
    2024    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
    2327    End Sub
    2428/*  Sub EventWaitHandle (initialState As Boolean, mode As EventResetMode, name As String, ByRef createdNew As Boolean, EventWaitHandleSecurity)
     
    5458    */
    5559    Static Function OpenExisting(name As String) As WaitHandle
     60        This.Handle(OpenEvent(EVENT_ALL_ACCESS,FALSE,ToTCStr(name)))
    5661    End Function
    5762
     
    100105End Namespace
    101106End 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__
    15
    26NameSpace System
     
    1519End Namespace
    1620End Namespace
     21
     22#endif
  • trunk/Include/Classes/index.ab

    r416 r419  
    8181#require "./System/Threading/EventWaitHandle.ab"
    8282#require "./System/Threading/ManualResetEvent.ab"
     83#require "./System/Threading/Mutex.ab"
     84#require "./System/Threading/Semaphore.ab"
    8385#require "./System/Threading/Thread.ab"
     86#require "./System/Threading/Timeout.ab"
    8487#require "./System/Threading/WaitHandle.ab"
    8588#require "./System/Windows/Forms/Application.ab"
Note: See TracChangeset for help on using the changeset viewer.