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);