X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlthrtut.pod;h=27ad46e2643f4e83b98d20ef60079069588e7f0a;hb=e13efe3ceea1a416bee536860751edb48e6bfcb3;hp=575ec27c52c2db33ed80675e59dac9f212e455a6;hpb=af685957336d0a37645ff959496386c489e0b52a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlthrtut.pod b/pod/perlthrtut.pod index 575ec27..27ad46e 100644 --- a/pod/perlthrtut.pod +++ b/pod/perlthrtut.pod @@ -542,7 +542,7 @@ techniques such as queues, which remove some of the hard work involved. =head2 Controlling access: lock() The lock() function takes a shared variable and puts a lock on it. -No other thread may lock the variable until the the variable is unlocked +No other thread may lock the variable until the variable is unlocked by the thread holding the lock. Unlocking happens automatically when the locking thread exits the outermost block that contains C function. Using lock() is straightforward: this example has