Skip to content

Commit 4e6c8e4

Browse files
authored
add support for Lock objects
1 parent 696f945 commit 4e6c8e4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎standard/standard-library.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,16 @@ namespace System.Threading
10331033
{
10341034
public bool IsCancellationRequested { get; }
10351035
}
1036+
1037+
public sealed class Lock
1038+
{
1039+
public Lock();
1040+
public System.Threading.Lock.Scope EnterScope();
1041+
public ref struct Lock.Scope
1042+
{
1043+
public void Dispose();
1044+
}
1045+
}
10361046
}
10371047

10381048
namespace System.Threading.Tasks
@@ -1560,6 +1570,8 @@ The following library types are referenced in this specification. The full names
15601570
- `global::System.Runtime.CompilerServices.ValueTaskAwaiter<TResult>`
15611571
- `global::System.Runtime.CompilerServices.Unsafe`
15621572
- `global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute`
1573+
- `global::System.Threading.Lock`
1574+
- `global::System.Threading.Lock.Scope`
15631575
- `global::System.Threading.Monitor`
15641576
- `global::System.Threading.Tasks.Task`
15651577
- `global::System.Threading.Tasks.Task<TResult>`

0 commit comments

Comments
 (0)