Ignore:
Timestamp:
Apr 2, 2015, 9:16:34 PM (10 years ago)
Author:
alloc
Message:

A11 preps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Telnet/TelnetConnection.cs

    r202 r224  
    1313                private readonly BlockingQueue<string> toClientQueue = new BlockingQueue<string> ();
    1414                private readonly Telnet telnet;
    15                 private readonly Thread receiveThread = null;
    16                 private readonly Thread sendThread = null;
    1715                private bool authenticated = false;
    1816                private readonly bool authEnabled;
     
    4442                        Log.Out ("Telnet connection from: " + endpoint);
    4543
    46                         receiveThread = ThreadMaster.Create ("TelnetClientReceive_" + endpoint.ToString (), new ThreadStart (ReceiveThread));
    47                         receiveThread.Start ();
    48                         sendThread = ThreadMaster.Create ("TelnetClientSend" + endpoint.ToString (), new ThreadStart (SendThread));
    49                         sendThread.Start ();
     44                        ThreadManager.StartThread ("TelnetClientReceive_" + endpoint.ToString (), new ThreadManager.ThreadFunctionDelegate (ReceiveThread), System.Threading.ThreadPriority.BelowNormal);
     45                        ThreadManager.StartThread ("TelnetClientSend_" + endpoint.ToString (), new ThreadManager.ThreadFunctionDelegate (SendThread), System.Threading.ThreadPriority.BelowNormal);
    5046
    5147                        if (authEnabled) {
     
    7773                }
    7874
    79                 private void ReceiveThread ()
     75                private void ReceiveThread (ThreadManager.ThreadInfo _tInfo)
    8076                {
    8177                        try {
     
    116112                        if (!closed)
    117113                                Close ();
    118                         ThreadMaster.Remove (Thread.CurrentThread.Name);
    119114                }
    120115
    121                 private void SendThread ()
     116                private void SendThread (ThreadManager.ThreadInfo _tInfo)
    122117                {
    123118                        try {
     
    140135                        if (!closed)
    141136                                Close ();
    142                         ThreadMaster.Remove (Thread.CurrentThread.Name);
    143137                }
    144138
Note: See TracChangeset for help on using the changeset viewer.