mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Make destroying ThreadedMutex explicit
This commit is contained in:
parent
ed34e1e5d9
commit
df5db8ac4e
@ -51,7 +51,7 @@ class ThreadedMutex implements MutexInterface
|
||||
*
|
||||
* @throws MutexException Thrown if the operation fails.
|
||||
*/
|
||||
public function __destruct()
|
||||
public function destroy()
|
||||
{
|
||||
if (!Mutex::destroy($this->handle)) {
|
||||
throw new MutexException('Failed to destroy the mutex. Did you forget to unlock it first?');
|
||||
|
Loading…
Reference in New Issue
Block a user