History

Added more code to GSF shared code project - moved PathHelper path validation function into FilePath

J. Ritchie Carroll committed 10 years ago

Commit e16ec441 parent 612a09672 files · +1523 −1481Browse files

Showing the changes to Source/Libraries/GSF.Core/Threading/ManagedThreadPool.cs (1 of 72 files). Show all

Unified · Split

Source/Libraries/GSF.Core/Threading/ManagedThreadPool.cs+3−3
@@ -56,7 +56,7 @@ namespace GSF.Threading · 55 unmodified lines
56 public static ManagedThread QueueUserWorkItem(ThreadStart callback)56 public static ManagedThread QueueUserWorkItem(ThreadStart callback)
57 {57 {
58 if ((object)callback == null)58 if ((object)callback == null)
59 throw (new ArgumentNullException("callback"));59 throw (new ArgumentNullException(nameof(callback)));
60 60
61 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, null, null);61 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, null, null);
62 62
@@ -96,7 +96,7 @@ namespace GSF.Threading · 33 unmodified lines
96 public static ManagedThread QueueUserWorkItem(ParameterizedThreadStart callback, object state)96 public static ManagedThread QueueUserWorkItem(ParameterizedThreadStart callback, object state)
97 {97 {
98 if ((object)callback == null)98 if ((object)callback == null)
99 throw (new ArgumentNullException("callback"));99 throw (new ArgumentNullException(nameof(callback)));
100 100
101 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, null);101 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, null);
102 102
@@ -138,7 +138,7 @@ namespace GSF.Threading · 35 unmodified lines
138 public static ManagedThread QueueUserWorkItem(ContextCallback callback, object state, ExecutionContext ctx)138 public static ManagedThread QueueUserWorkItem(ContextCallback callback, object state, ExecutionContext ctx)
139 {139 {
140 if ((object)callback == null)140 if ((object)callback == null)
141 throw (new ArgumentNullException("callback"));141 throw (new ArgumentNullException(nameof(callback)));
142 142
143 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, ctx);143 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, ctx);
144 144

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