diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-04-16 16:02:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-04-16 16:02:25 +0000 |
commit | a4b8955f3eb87405ceafe5c8680d9439f441458e (patch) | |
tree | cad2bf815f268ec1fdad34c1cc09089289ee3736 /libs/ardour/session.cc | |
parent | 60eef7dd3e0240367550a274a91ddb498dedcbc2 (diff) |
part 2 of 3 of the 2.8 -> 3.0 merge
git-svn-id: svn://localhost/ardour2/branches/3.0@4987 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e62d672984..f2e1b2a730 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4085,7 +4085,9 @@ Session::write_one_track (AudioTrack& track, nframes_t start, nframes_t end, // any bigger than this seems to cause stack overflows in called functions const nframes_t chunk_size = (128 * 1024)/4; - g_atomic_int_set (&processing_prohibited, 1); + // block all process callback handling + + block_processing (); /* call tree *MUST* hold route_lock */ @@ -4211,7 +4213,7 @@ Session::write_one_track (AudioTrack& track, nframes_t start, nframes_t end, } } - g_atomic_int_set (&processing_prohibited, 0); + unblock_processing (); return result; } |