Browse Source

Timeline: Fix locking behavior of Control Sequences.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
2af46a1a0c
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      timeline/src/Sequence.C

+ 4
- 4
timeline/src/Sequence.C View File

@@ -120,7 +120,11 @@ Sequence::x_to_offset ( int X )
void
Sequence::sort ( void )
{
timeline->wrlock();

_widgets.sort( Sequence_Widget::sort_func );

timeline->unlock();
}

/** return a pointer to the widget that /r/ overlaps, or NULL if none. */
@@ -140,11 +144,7 @@ Sequence::overlaps ( Sequence_Widget *r )
void
Sequence::handle_widget_change ( nframes_t start, nframes_t length )
{
timeline->wrlock();

sort();

timeline->unlock();
// timeline->update_length( start + length );
}



Loading…
Cancel
Save