You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
+38-13
Original file line number
Diff line number
Diff line change
@@ -153,8 +153,27 @@ public Thread(ParameterizedThreadStart start, int maxStackSize)
153
153
#if !TARGET_BROWSER
154
154
internalconstboolIsThreadStartSupported=true;
155
155
156
+
/// <summary>Causes the operating system to change the state of the current instance to <see cref="ThreadState.Running"/>, and optionally supplies an object containing data to be used by the method the thread executes.</summary>
157
+
/// <param name="parameter">An object that contains data to be used by the method the thread executes.</param>
158
+
/// <exception cref="ThreadStateException">The thread has already been started.</exception>
159
+
/// <exception cref="OutOfMemoryException">There is not enough memory available to start this thread.</exception>
160
+
/// <exception cref="InvalidOperationException">This thread was created using a <see cref="ThreadStart"/> delegate instead of a <see cref="ParameterizedThreadStart"/> delegate.</exception>
/// <summary>Causes the operating system to change the state of the current instance to <see cref="ThreadState.Running"/>, and optionally supplies an object containing data to be used by the method the thread executes.</summary>
165
+
/// <param name="parameter">An object that contains data to be used by the method the thread executes.</param>
166
+
/// <exception cref="ThreadStateException">The thread has already been started.</exception>
167
+
/// <exception cref="OutOfMemoryException">There is not enough memory available to start this thread.</exception>
168
+
/// <exception cref="InvalidOperationException">This thread was created using a <see cref="ThreadStart"/> delegate instead of a <see cref="ParameterizedThreadStart"/> delegate.</exception>
169
+
/// <remarks>
170
+
/// Unlike <see cref="Start"/>, which captures the current <see cref="ExecutionContext"/> and uses that context to invoke the thread's delegate,
171
+
/// <see cref="UnsafeStart"/> explicitly avoids capturing the current context and flowing it to the invocation.
Copy file name to clipboardExpand all lines: src/libraries/System.Threading.Thread/ref/System.Threading.Thread.cs
+4
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,10 @@ public void Start(object? parameter) { }
96
96
[System.ObsoleteAttribute("Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. https://go.microsoft.com/fwlink/?linkid=14202",false)]
0 commit comments