Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document that Lock is reentrant
  • Loading branch information
moritz committed Jan 5, 2015
1 parent a5f256e commit ed78d87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Type/Lock.pod
Expand Up @@ -17,7 +17,10 @@ I<critical section>).
}
say $x; #
High-level Perl 6 code should awoid the direct usage of locks, because they
Locks are reentrant, that is, a thread that holds the lock can lock it again
without blocking.
High-level Perl 6 code should avoid the direct usage of locks, because they
are not composable. Instead, high-level constructs such as
L<Promise|/type/Promise>, L<Channel|/type/Channel> and Supply should be used
whenever possible.
Expand Down

0 comments on commit ed78d87

Please sign in to comment.