• PHP Video Tutorials

PHP - Mutex::create() Function



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

Syntax

final public static long Mutex::create([ boolean $lock ] )

Mutex::create() function can create, and optionally lock a new Mutex for the caller.

Mutex:: create() function can return a newly created and optionally locked Mutex handle.

Example

<?php
   $mutex = Mutex::create();
   var_dump($mutex);

   Mutex::destroy($mutex);
?>
php_function_reference.htm
Advertisements