Closed jwakely closed 8 years ago
Avoid doing a second lookup to erase the lock from the map.
Comparing the iterator to end shouldn't be necessary, but handles the case where the ostream's stream buffer is replaced between the calls to get_lock() and release_lock().
Avoid doing a second lookup to erase the lock from the map.
Comparing the iterator to end shouldn't be necessary, but handles the case where the ostream's stream buffer is replaced between the calls to get_lock() and release_lock().