<?php declare(strict_types=1); namespace malkusch\lock\mutex; /** * This mutex doesn't lock at all. * * Synchronization is not provided! This mutex is just implementing the * interface without locking. * * @author Markus Malkusch <markus@malkusch.de> * @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations * @license WTFPL */ class NoMutex extends Mutex { public function synchronized(callable $code) { return $code(); } }