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 (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
235 {235 {
236 m_clientID = clientID;236 m_clientID = clientID;
237 m_filter = new ClientFilter();237 m_filter = new ClientFilter();
238 m_thread = serviceHelper.m_threadScheduler.CreateThread(2);238 m_thread = serviceHelper.m_threadScheduler.CreateThread();
239 m_messageCounts = new List<Tuple<DateTime, int>>();239 m_messageCounts = new List<Tuple<DateTime, int>>();
240 m_serviceHelper = serviceHelper;240 m_serviceHelper = serviceHelper;
241 }241 }
@@ -720,9 +720,9 @@ namespace GSF.ServiceProcess · 478 unmodified lines
720 m_componentEnabledStates = new Dictionary<ISupportLifecycle, bool>();720 m_componentEnabledStates = new Dictionary<ISupportLifecycle, bool>();
721 721
722 m_clientStatusUpdateLookup = new Dictionary<Guid, ClientStatusUpdateConfiguration>();722 m_clientStatusUpdateLookup = new Dictionary<Guid, ClientStatusUpdateConfiguration>();
723 m_threadScheduler = new LogicalThreadScheduler();723 m_threadScheduler = new LogicalThreadScheduler(2);
724 m_threadScheduler.UnhandledException += LogicalThread_ProcessException;724 m_threadScheduler.UnhandledException += LogicalThread_ProcessException;
725 m_statusUpdateThread = m_threadScheduler.CreateThread(2);725 m_statusUpdateThread = m_threadScheduler.CreateThread();
726 m_statusUpdateQueue = new List<StatusUpdate>();726 m_statusUpdateQueue = new List<StatusUpdate>();
727 727
728 // Components728 // 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