namespace AsiaINFO.SMS.CMPP2
|
{
|
using System;
|
using System.Threading;
|
|
public class SyncEvents
|
{
|
private WaitHandle[] _eventArray;
|
private EventWaitHandle _exitThreadEvent = new ManualResetEvent(false);
|
private EventWaitHandle _newItemEvent = new AutoResetEvent(false);
|
|
public SyncEvents()
|
{
|
this._eventArray = new WaitHandle[] { this._newItemEvent, this._exitThreadEvent };
|
}
|
|
public WaitHandle[] EventArray
|
{
|
get
|
{
|
return this._eventArray;
|
}
|
}
|
|
public EventWaitHandle ExitThreadEvent
|
{
|
get
|
{
|
return this._exitThreadEvent;
|
}
|
}
|
|
public EventWaitHandle NewItemEvent
|
{
|
get
|
{
|
return this._newItemEvent;
|
}
|
}
|
}
|
}
|