wzp
2021-07-28 864986e4cad03f6b9bba9a7e65379db496b62a6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;
            }
        }
    }
}