History

GSF.Core: Updated LogicalThread API to handle prioritization at the thread scheduler so that threads can be reprioritized based on the priority of their tasks.

StephenCWills committed 9 years ago

Commit d6482bb1 parent 3c892cb4 files · +153 −53Browse files

Showing the changes to Source/Libraries/GSF.ServiceProcess/ServiceHelper.cs (1 of 4 files). Show all

Unified · Split

Source/Libraries/GSF.ServiceProcess/ServiceHelper.cs+3−3
@@ -235,7 +235,7 @@ namespace GSF.ServiceProcess · 234 unmodified lines
235235 {
236236 m_clientID = clientID;
237237 m_filter = new ClientFilter();
238− m_thread = serviceHelper.m_threadScheduler.CreateThread(2);
238+ m_thread = serviceHelper.m_threadScheduler.CreateThread();
239239 m_messageCounts = new List<Tuple<DateTime, int>>();
240240 m_serviceHelper = serviceHelper;
241241 }
@@ -720,9 +720,9 @@ namespace GSF.ServiceProcess · 478 unmodified lines
720720 m_componentEnabledStates = new Dictionary<ISupportLifecycle, bool>();
721721
722722 m_clientStatusUpdateLookup = new Dictionary<Guid, ClientStatusUpdateConfiguration>();
723− m_threadScheduler = new LogicalThreadScheduler();
723+ m_threadScheduler = new LogicalThreadScheduler(2);
724724 m_threadScheduler.UnhandledException += LogicalThread_ProcessException;
725− m_statusUpdateThread = m_threadScheduler.CreateThread(2);
725+ m_statusUpdateThread = m_threadScheduler.CreateThread();
726726 m_statusUpdateQueue = new List<StatusUpdate>();
727727
728728 // Components

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t