authorgravatar for shawn@git.icuShawn Landden <shawn@git.icu> 2018-09-01 23:51:44-07:00
committergravatar for shawn@git.icuShawn Landden <shawn@git.icu> 2018-09-01 23:52:52-07:00
log528e3b43a677c0fbd05245fec9e4a6c361b89b59
treecb6bf3f66dd3557b658f9491242cd156a02bb8d5
parent1a5c3e4501589d50920489caed01ac344bc6f72a

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 {