Mutex
PHP Manual

Mutex::destroy

(PECL pthreads >= 0.0.33)

Mutex::destroyTo destroy a handle to a Mutex and free the associated resources

说明

final public static boolean Mutex::destroy ( long $mutex )

Destroying Mutex handles must be carried out explicitly by the programmer when they are finished with the Mutex handle.

参数

mutex

A handle returned by a previous call to Mutex::create(). The handle should not be locked by any Thread when Mutex::destroy() is called.

返回值

A boolean indication of success


Mutex
PHP Manual