Commit f98b161b authored by Rick Wertenbroek's avatar Rick Wertenbroek Committed by Jonathan Corbet
Browse files

docs: scheduler: completion: Fix minor error in pseudo-code

parent 5e2045ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ A typical usage scenario is::

	/* run non-dependent code */		/* do setup */

	wait_for_completion(&setup_done);	complete(setup_done);
	wait_for_completion(&setup_done);	complete(&setup_done);

This is not implying any particular order between wait_for_completion() and
the call to complete() - if the call to complete() happened before the call