You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -61,9 +61,6 @@ namespace System.Threading
|
||||
/// </remarks>
|
||||
public static CancellationToken None
|
||||
{
|
||||
#if !FEATURE_CORECLR
|
||||
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
|
||||
#endif
|
||||
get { return default(CancellationToken); }
|
||||
}
|
||||
|
||||
@@ -88,9 +85,6 @@ namespace System.Threading
|
||||
/// </remarks>
|
||||
public bool IsCancellationRequested
|
||||
{
|
||||
#if !FEATURE_CORECLR
|
||||
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
|
||||
#endif
|
||||
get
|
||||
{
|
||||
return m_source != null && m_source.IsCancellationRequested;
|
||||
@@ -107,9 +101,6 @@ namespace System.Threading
|
||||
/// </remarks>
|
||||
public bool CanBeCanceled
|
||||
{
|
||||
#if !FEATURE_CORECLR
|
||||
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
|
||||
#endif
|
||||
get
|
||||
{
|
||||
return m_source != null && m_source.CanBeCanceled;
|
||||
@@ -146,9 +137,6 @@ namespace System.Threading
|
||||
/// <summary>
|
||||
/// Internal constructor only a CancellationTokenSource should create a CancellationToken
|
||||
/// </summary>
|
||||
#if !FEATURE_CORECLR
|
||||
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
|
||||
#endif
|
||||
internal CancellationToken(CancellationTokenSource source)
|
||||
{
|
||||
m_source = source;
|
||||
@@ -203,8 +191,6 @@ namespace System.Threading
|
||||
/// <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
|
||||
/// be used to deregister the callback.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The associated <see
|
||||
/// cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
|
||||
public CancellationTokenRegistration Register(Action callback)
|
||||
{
|
||||
if (callback == null)
|
||||
@@ -240,8 +226,6 @@ namespace System.Threading
|
||||
/// <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
|
||||
/// be used to deregister the callback.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The associated <see
|
||||
/// cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
|
||||
public CancellationTokenRegistration Register(Action callback, bool useSynchronizationContext)
|
||||
{
|
||||
if (callback == null)
|
||||
@@ -275,8 +259,6 @@ namespace System.Threading
|
||||
/// <returns>The <see cref="T:System.Threading.CancellationTokenRegistration"/> instance that can
|
||||
/// be used to deregister the callback.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The associated <see
|
||||
/// cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
|
||||
public CancellationTokenRegistration Register(Action<Object> callback, Object state)
|
||||
{
|
||||
if (callback == null)
|
||||
@@ -481,9 +463,6 @@ namespace System.Threading
|
||||
/// <exception cref="System.OperationCanceledException">The token has had cancellation requested.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The associated <see
|
||||
/// cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
|
||||
#if !FEATURE_CORECLR
|
||||
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
|
||||
#endif
|
||||
public void ThrowIfCancellationRequested()
|
||||
{
|
||||
if (IsCancellationRequested)
|
||||
|
||||
Reference in New Issue
Block a user