Skip to content

Commit fba85ed

Browse files
authored
Fix README usage of shared lock
The README said that to release a shared lock, we should use the $lock->acquire() function again. I changed it to $lock->release().
1 parent 16f3b0f commit fba85ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $lock->acquire();
5252

5353
// read /path/to/file
5454

55-
$lock->acquire();
55+
$lock->release();
5656

5757
// other processes can now acquire an exclusive lock on the file if no other shared lock remains.
5858
```

0 commit comments

Comments
 (0)