The example seems to be for a regular std::mutex rather than std::recursive_mutex Arbalest (talk) 16:12, 7 October 2013 (PDT)
- I believe you are correct. Perhaps it would make sense to have the lock template page reference different example pages, e.g. cpp/thread/recursive_mutex/lock_example and cpp/thread/mutex/lock_example. Wanna take a crack at it? :) --Nate (talk) 17:16, 7 October 2013 (PDT)