Mercurial > hg > match-vamp
comparison src/MatchFeatureFeeder.cpp @ 63:a540137d393b refactors_no_float
Fix handling of empty queues -- we should continue processing when a queue is empty only if we've reached end of file on both
author | Chris Cannam |
---|---|
date | Tue, 18 Nov 2014 10:03:36 +0000 |
parents | faa523be20f9 |
children | da9ead46abe9 |
comparison
equal
deleted
inserted
replaced
60:faa523be20f9 | 63:a540137d393b |
---|---|
44 | 44 |
45 if (!f2.empty()) { | 45 if (!f2.empty()) { |
46 q2.push(f2); | 46 q2.push(f2); |
47 } | 47 } |
48 | 48 |
49 while (!q1.empty() && !q2.empty()) { | |
50 feedBlock(); | |
51 } | |
52 } | |
53 | |
54 void | |
55 MatchFeatureFeeder::finish() | |
56 { | |
49 while (!q1.empty() || !q2.empty()) { | 57 while (!q1.empty() || !q2.empty()) { |
50 feedBlock(); | 58 feedBlock(); |
51 } | 59 } |
52 } | 60 } |
53 | 61 |