authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-02 11:14:17-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2018-09-02 11:14:17-04:00
log67cb299f7d7cd88e6843f12865477594843f1496
treecb6bf3f66dd3557b658f9491242cd156a02bb8d5
parent1a5c3e4501589d50920489caed01ac344bc6f72a
parent528e3b43a677c0fbd05245fec9e4a6c361b89b59
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #1456 from shawnl/inaccurate-comments

these all use futex() (inaccurate comments)

4 files changed, 4 insertions(+), 4 deletions(-)

std/event/lock.zig+1-1
......@@ -7,7 +7,7 @@ const AtomicOrder = builtin.AtomicOrder;
77const Loop = std.event.Loop;
88
99/// Thread-safe async/await lock.
10/// Does not make any syscalls - coroutines which are waiting for the lock are suspended, and
10/// coroutines which are waiting for the lock are suspended, and
1111/// are resumed when the lock is released, in order.
1212/// Allows only one actor to hold the lock.
1313pub const Lock = struct {
std/event/locked.zig+1-1
......@@ -3,7 +3,7 @@ const Lock = std.event.Lock;
33const Loop = std.event.Loop;
44
55/// Thread-safe async/await lock that protects one piece of data.
6/// Does not make any syscalls - coroutines which are waiting for the lock are suspended, and
6/// coroutines which are waiting for the lock are suspended, and
77/// are resumed when the lock is released, in order.
88pub fn Locked(comptime T: type) type {
99 return struct {
std/event/rwlock.zig+1-1
......@@ -7,7 +7,7 @@ const AtomicOrder = builtin.AtomicOrder;
77const Loop = std.event.Loop;
88
99/// Thread-safe async/await lock.
10/// Does not make any syscalls - coroutines which are waiting for the lock are suspended, and
10/// coroutines which are waiting for the lock are suspended, and
1111/// are resumed when the lock is released, in order.
1212/// Many readers can hold the lock at the same time; however locking for writing is exclusive.
1313/// When a read lock is held, it will not be released until the reader queue is empty.
std/event/rwlocked.zig+1-1
......@@ -3,7 +3,7 @@ const RwLock = std.event.RwLock;
33const Loop = std.event.Loop;
44
55/// Thread-safe async/await RW lock that protects one piece of data.
6/// Does not make any syscalls - coroutines which are waiting for the lock are suspended, and
6/// coroutines which are waiting for the lock are suspended, and
77/// are resumed when the lock is released, in order.
88pub fn RwLocked(comptime T: type) type {
99 return struct {