Replace horribly error-prone Sequence/MidiModel/MidiSource locking API with scoped...
authorDavid Robillard <d@drobilla.net>
Thu, 22 Oct 2009 16:15:36 +0000 (16:15 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 22 Oct 2009 16:15:36 +0000 (16:15 +0000)
commitd98c8e8fa4bb18cbbf2a18b82b11d9949bb00890
treefd0a5fa975e491c1641417e8f121159678a3a8ce
parent2eed368c24f3411dc062a90058b1d6be5705444d
Replace horribly error-prone Sequence/MidiModel/MidiSource locking API with scoped locks that automatically Do The Right Thing.
Make Sequence::read_lock const correct in the process (a read lock can be taken out on a const Sequence, but not a write lock).

git-svn-id: svn://localhost/ardour2/branches/3.0@5857 d708f5d6-7413-0410-9779-e7cbd77b26cf
gtk2_ardour/midi_region_view.cc
libs/ardour/ardour/midi_model.h
libs/ardour/ardour/midi_source.h
libs/ardour/midi_model.cc
libs/ardour/midi_source.cc
libs/evoral/evoral/Sequence.hpp
libs/evoral/src/Sequence.cpp