Timeline: Fix locking behavior of Control Sequences.
This commit is contained in:
parent
d249bb9bbd
commit
2af46a1a0c
|
@ -120,7 +120,11 @@ Sequence::x_to_offset ( int X )
|
||||||
void
|
void
|
||||||
Sequence::sort ( void )
|
Sequence::sort ( void )
|
||||||
{
|
{
|
||||||
|
timeline->wrlock();
|
||||||
|
|
||||||
_widgets.sort( Sequence_Widget::sort_func );
|
_widgets.sort( Sequence_Widget::sort_func );
|
||||||
|
|
||||||
|
timeline->unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** return a pointer to the widget that /r/ overlaps, or NULL if none. */
|
/** return a pointer to the widget that /r/ overlaps, or NULL if none. */
|
||||||
|
@ -140,11 +144,7 @@ Sequence::overlaps ( Sequence_Widget *r )
|
||||||
void
|
void
|
||||||
Sequence::handle_widget_change ( nframes_t start, nframes_t length )
|
Sequence::handle_widget_change ( nframes_t start, nframes_t length )
|
||||||
{
|
{
|
||||||
timeline->wrlock();
|
|
||||||
|
|
||||||
sort();
|
sort();
|
||||||
|
|
||||||
timeline->unlock();
|
|
||||||
// timeline->update_length( start + length );
|
// timeline->update_length( start + length );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue