• PHP Video Tutorials

PHP - Mutex::destroy() Function



Mutex::destroy() function can destroy a Mutex.

Syntax

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

Mutex:: destroy() function can destroy Mutex handles must be carried out explicitly by a programmer when they are finished with the Mutex handle.

Mutex:: destroy() function can return a boolean indication of success.

Example

<?php
   $mutex = Mutex::create();
   var_dump($mutex);
   
   Mutex::destroy($mutex);
?>
php_function_reference.htm
Advertisements