Skip to content

Commit ed78d87

Browse files
committed
document that Lock is reentrant
1 parent a5f256e commit ed78d87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Type/Lock.pod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ I<critical section>).
1717
}
1818
say $x; #
1919
20-
High-level Perl 6 code should awoid the direct usage of locks, because they
20+
Locks are reentrant, that is, a thread that holds the lock can lock it again
21+
without blocking.
22+
23+
High-level Perl 6 code should avoid the direct usage of locks, because they
2124
are not composable. Instead, high-level constructs such as
2225
L<Promise|/type/Promise>, L<Channel|/type/Channel> and Supply should be used
2326
whenever possible.

0 commit comments

Comments
 (0)