| 1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Concurrent;
- using System.Collections.Generic;
- using System.Threading;
- namespace ET
- {
- public class NetThreadComponent: Entity
- {
- public static NetThreadComponent Instance;
-
- public const int checkInteral = 2000;
- public const int recvMaxIdleTime = 60000;
- public const int sendMaxIdleTime = 60000;
- #if NET_THREAD
- public Thread Thread;
- #endif
- public ThreadSynchronizationContext ThreadSynchronizationContext;
-
- public HashSet<AService> Services = new HashSet<AService>();
- #if NET_THREAD
- public bool isRun;
- #endif
-
- public Random Random = new Random(Guid.NewGuid().GetHashCode());
- }
- }
|