/// <summary>Used internally. If overridden, call this method first. Only creates the down_handler thread /// if down_thread is true /// </summary> public virtual void startDownHandler() { if (down_thread) { if (down_handler == null) { down_queue = new Alachisoft.NCache.Common.DataStructures.Queue(); down_handler = new DownHandler(down_queue, this); down_handler.Start(); } } }
/// <summary>Used internally. If overridden, call this method first. Only creates the down_handler thread /// if down_thread is true /// </summary> public virtual void startDownHandler() { if (down_thread) { if (down_handler == null) { down_queue = new Alachisoft.NCache.Common.DataStructures.Queue(); down_handler = new DownHandler(down_queue, this); if (down_thread_prio >= 0) { try { //down_handler.Priority = System.Threading.ThreadPriority.AboveNormal; } catch (System.Exception t) { stack.NCacheLog.Error("Protocol.startDownHandler()", "priority " + down_thread_prio + " could not be set for thread: " + t.StackTrace); } } down_handler.Start(); } } }
public override void startDownHandler() { if (down_thread) { if (_unicastDownHandler == null) { _unicastDownQueue = new Alachisoft.NCache.Common.DataStructures.Queue(); _unicastDownHandler = new DownHandler(_unicastDownQueue, this, Name + ".unicast.DownHandler", 1); if (down_thread_prio >= 0) { try { } catch (System.Exception t) { Stack.NCacheLog.Error("Protocol.startDownHandler()", "priority " + down_thread_prio + " could not be set for thread: " + t.StackTrace); } } _unicastDownHandler.Start(); } if (_multicastDownHandler == null) { _multicastDownQueue = new Alachisoft.NCache.Common.DataStructures.Queue(); _multicastDownHandler = new DownHandler(_multicastDownQueue, this, Name + ".muticast.DownHandler", 2); if (down_thread_prio >= 0) { try { } catch (System.Exception t) { Stack.NCacheLog.Error("Protocol.startDownHandler()", "priority " + down_thread_prio + " could not be set for thread: " + t.StackTrace); } } _multicastDownHandler.Start(); } if (_tokenSeekingMsgDownHandler == null) { _tokenSeekingMsgDownQueue = new Alachisoft.NCache.Common.DataStructures.Queue(); _tokenSeekingMsgDownHandler = new DownHandler(_tokenSeekingMsgDownQueue, this, Name + ".token.DownHandler", 3); if (down_thread_prio >= 0) { try { } catch (System.Exception t) { Stack.NCacheLog.Error("Protocol.startDownHandler()", "priority " + down_thread_prio + " could not be set for thread: " + t.StackTrace); } } _tokenSeekingMsgDownHandler.Start(); } } }