1
0
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:
coderstephen 2015-08-07 23:30:48 -05:00
parent ed34e1e5d9
commit df5db8ac4e

View File

@ -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?');