ccia_code_samples
ccia_code_samples copied to clipboard
fix listing 3.8
void unlock()
{
if(this_thread_hierarchy_value!=hierarchy_value)
throw std::logic_error("mutex hierarchy violated"); // missing
this_thread_hierarchy_value=previous_hierarchy_value;
internal_mutex.unlock();
}
why not submit this as a Pull Request ? I'm not following what was wrong
why not submit this as a Pull Request ? I'm not following what was wrong
ccia 2nd P59 line 3