Fix param order in example

Patch by Michael Bright

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333218 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2014-03-29 21:56:47 +00:00
parent 4760cef0ed
commit 02a5c4fd3e

View file

@ -73,7 +73,7 @@ $mutex = Mutex::create(true);
/** You cannot use the "new" keyword, a Cond is not a PHP object **/
$cond = Cond::create();
/** The caller must lock the associated Mutex before a call to broadcast **/
var_dump(Cond::wait($mutex, $cond));
var_dump(Cond::wait($cond, $mutex));
/** Always destroy Cond you have created **/
Cond::destroy($cond);
Mutex::unlock($mutex);