Skip to content

Commit

Permalink
Thread names on Linux too long
Browse files Browse the repository at this point in the history
Shorten the names of the .NET threads (I/O and pin monitoring) to something shorter.

Issue: DOTNET-92, #24
  • Loading branch information
jcurl committed May 6, 2017
1 parent df17f05 commit 9a89ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Native/UnixNativeSerial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public void StartMonitor(SerialBuffer buffer, string name)
try {
m_IsRunning = true;
m_MonitorThread = new Thread(new ThreadStart(ReadWriteThread));
m_MonitorThread.Name = "UnixNativeSerial::Monitor_" + m_Name;
m_MonitorThread.Name = "NSerMon_" + m_Name;
m_MonitorThread.IsBackground = true;
m_MonitorThread.Start();
} catch {
Expand All @@ -707,7 +707,7 @@ public void StartMonitor(SerialBuffer buffer, string name)
try {
m_MonitorPins = true;
m_PinThread = new Thread(new ThreadStart(PinChangeThread));
m_PinThread.Name = "UnixNativeSerial::Pin_" + m_Name;
m_PinThread.Name = "NSerPin_" + m_Name;
m_PinThread.IsBackground = true;
m_PinThread.Start();
} catch {
Expand Down

0 comments on commit 9a89ea6

Please sign in to comment.