From ff259738b29957f39ab85ea72f3fd8622346a07c Mon Sep 17 00:00:00 2001 From: Willem Stuursma-Ruwen Date: Mon, 11 Jun 2018 23:07:41 +0200 Subject: [PATCH] Update documentation regarding #6 --- README.md | 3 +++ composer.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index e1765cc..ac6800a 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,9 @@ $mutex->synchronized(function () use ($bankAccount, $amount) { }); ``` +Timeouts are supported as an optional second argument. This uses the pcntl extension if +possible or busy waiting if not. + #### MemcachedMutex The **MemcachedMutex** diff --git a/composer.json b/composer.json index 27b4524..eeed2c9 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,9 @@ "predis/predis": "~1.0", "squizlabs/php_codesniffer": "^3.2" }, + "suggest": { + "ext-pnctl": "Enables locking with flock without busy waiting in CLI scripts" + }, "archive": { "exclude": ["/tests"] },