55// Changes to this file must follow the http://aka.ms/api-review process.
66// ------------------------------------------------------------------------------
77
8-
98namespace System . Threading
109{
1110 public partial class AbandonedMutexException : System . SystemException
1211 {
1312 public AbandonedMutexException ( ) { }
1413 public AbandonedMutexException ( int location , System . Threading . WaitHandle handle ) { }
14+ protected AbandonedMutexException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
1515 public AbandonedMutexException ( string message ) { }
1616 public AbandonedMutexException ( string message , System . Exception inner ) { }
1717 public AbandonedMutexException ( string message , System . Exception inner , int location , System . Threading . WaitHandle handle ) { }
1818 public AbandonedMutexException ( string message , int location , System . Threading . WaitHandle handle ) { }
19- protected AbandonedMutexException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
2019 public System . Threading . Mutex Mutex { get { throw null ; } }
2120 public int MutexIndex { get { throw null ; } }
2221 }
@@ -31,22 +30,23 @@ public void Dispose() { }
3130 public static bool operator != ( System . Threading . AsyncFlowControl a , System . Threading . AsyncFlowControl b ) { throw null ; }
3231 public void Undo ( ) { }
3332 }
34- public sealed partial class AsyncLocal < T >
35- {
36- public AsyncLocal ( ) { }
37- public AsyncLocal ( System . Action < System . Threading . AsyncLocalValueChangedArgs < T > > valueChangedHandler ) { }
38- public T Value { get { throw null ; } set { } }
39- }
4033 public partial struct AsyncLocalValueChangedArgs < T >
4134 {
4235 private T _dummy ;
36+ private int _dummyPrimitive ;
4337 public T CurrentValue { get { throw null ; } }
4438 public T PreviousValue { get { throw null ; } }
4539 public bool ThreadContextChanged { get { throw null ; } }
4640 }
41+ public sealed partial class AsyncLocal < T >
42+ {
43+ public AsyncLocal ( ) { }
44+ public AsyncLocal ( System . Action < System . Threading . AsyncLocalValueChangedArgs < T > > valueChangedHandler ) { }
45+ public T Value { get { throw null ; } set { } }
46+ }
4747 public sealed partial class AutoResetEvent : System . Threading . EventWaitHandle
4848 {
49- public AutoResetEvent ( bool initialState ) : base ( default ( bool ) , default ( System . Threading . EventResetMode ) ) { }
49+ public AutoResetEvent ( bool initialState ) : base ( default ( bool ) , default ( System . Threading . EventResetMode ) ) { }
5050 }
5151 public partial class Barrier : System . IDisposable
5252 {
@@ -72,9 +72,9 @@ public partial class BarrierPostPhaseException : System.Exception
7272 {
7373 public BarrierPostPhaseException ( ) { }
7474 public BarrierPostPhaseException ( System . Exception innerException ) { }
75+ protected BarrierPostPhaseException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
7576 public BarrierPostPhaseException ( string message ) { }
7677 public BarrierPostPhaseException ( string message , System . Exception innerException ) { }
77- protected BarrierPostPhaseException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
7878 }
7979 public delegate void ContextCallback ( object state ) ;
8080 public partial class CountdownEvent : System . IDisposable
@@ -118,7 +118,7 @@ public EventWaitHandle(bool initialState, System.Threading.EventResetMode mode,
118118 }
119119 public sealed partial class ExecutionContext : System . IDisposable , System . Runtime . Serialization . ISerializable
120120 {
121- private ExecutionContext ( ) { }
121+ internal ExecutionContext ( ) { }
122122 public static System . Threading . ExecutionContext Capture ( ) { throw null ; }
123123 public System . Threading . ExecutionContext CreateCopy ( ) { throw null ; }
124124 public void Dispose ( ) { }
@@ -180,7 +180,7 @@ public static partial class LazyInitializer
180180 }
181181 public partial struct LockCookie
182182 {
183- private int _dummy ;
183+ private int _dummyPrimitive ;
184184 public override bool Equals ( object obj ) { throw null ; }
185185 public bool Equals ( System . Threading . LockCookie obj ) { throw null ; }
186186 public override int GetHashCode ( ) { throw null ; }
@@ -190,9 +190,9 @@ public partial struct LockCookie
190190 public partial class LockRecursionException : System . Exception
191191 {
192192 public LockRecursionException ( ) { }
193+ protected LockRecursionException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
193194 public LockRecursionException ( string message ) { }
194195 public LockRecursionException ( string message , System . Exception innerException ) { }
195- protected LockRecursionException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
196196 }
197197 public enum LockRecursionPolicy
198198 {
@@ -201,7 +201,7 @@ public enum LockRecursionPolicy
201201 }
202202 public sealed partial class ManualResetEvent : System . Threading . EventWaitHandle
203203 {
204- public ManualResetEvent ( bool initialState ) : base ( default ( bool ) , default ( System . Threading . EventResetMode ) ) { }
204+ public ManualResetEvent ( bool initialState ) : base ( default ( bool ) , default ( System . Threading . EventResetMode ) ) { }
205205 }
206206 public partial class ManualResetEventSlim : System . IDisposable
207207 {
@@ -314,9 +314,9 @@ public Semaphore(int initialCount, int maximumCount, string name) { }
314314 public partial class SemaphoreFullException : System . SystemException
315315 {
316316 public SemaphoreFullException ( ) { }
317+ protected SemaphoreFullException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
317318 public SemaphoreFullException ( string message ) { }
318319 public SemaphoreFullException ( string message , System . Exception innerException ) { }
319- protected SemaphoreFullException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
320320 }
321321 public partial class SemaphoreSlim : System . IDisposable
322322 {
@@ -344,7 +344,7 @@ public void Wait(System.Threading.CancellationToken cancellationToken) { }
344344 public delegate void SendOrPostCallback ( object state ) ;
345345 public partial struct SpinLock
346346 {
347- private int _dummy ;
347+ private int _dummyPrimitive ;
348348 public SpinLock ( bool enableThreadOwnerTracking ) { throw null ; }
349349 public bool IsHeld { get { throw null ; } }
350350 public bool IsHeldByCurrentThread { get { throw null ; } }
@@ -358,7 +358,7 @@ public void TryEnter(System.TimeSpan timeout, ref bool lockTaken) { }
358358 }
359359 public partial struct SpinWait
360360 {
361- private int _dummy ;
361+ private int _dummyPrimitive ;
362362 public int Count { get { throw null ; } }
363363 public bool NextSpinWillYield { get { throw null ; } }
364364 public void Reset ( ) { }
@@ -389,9 +389,9 @@ protected void SetWaitNotificationRequired() { }
389389 public partial class SynchronizationLockException : System . SystemException
390390 {
391391 public SynchronizationLockException ( ) { }
392+ protected SynchronizationLockException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
392393 public SynchronizationLockException ( string message ) { }
393394 public SynchronizationLockException ( string message , System . Exception innerException ) { }
394- protected SynchronizationLockException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
395395 }
396396 public partial class ThreadLocal < T > : System . IDisposable
397397 {
@@ -451,8 +451,8 @@ public static void Write<T>(ref T location, T value) where T : class { }
451451 public partial class WaitHandleCannotBeOpenedException : System . ApplicationException
452452 {
453453 public WaitHandleCannotBeOpenedException ( ) { }
454+ protected WaitHandleCannotBeOpenedException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
454455 public WaitHandleCannotBeOpenedException ( string message ) { }
455456 public WaitHandleCannotBeOpenedException ( string message , System . Exception innerException ) { }
456- protected WaitHandleCannotBeOpenedException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
457457 }
458458}
0 commit comments