From 02a5c4fd3e101a74585926aa03231b8fa3824aa9 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Sat, 29 Mar 2014 21:56:47 +0000 Subject: [PATCH] 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 --- reference/pthreads/cond/wait.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/pthreads/cond/wait.xml b/reference/pthreads/cond/wait.xml index 4fc8fa4837..9251fc9593 100644 --- a/reference/pthreads/cond/wait.xml +++ b/reference/pthreads/cond/wait.xml @@ -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);