Permalink
Browse files

spitfire queue Keep signalling if we have any remaining items in the …

…queue.
  • Loading branch information...
pilkch committed Apr 9, 2012
1 parent ea58b94 commit b015183b6c500b8477e51c10b1faabc9f92fa4ea
Showing with 6 additions and 0 deletions.
  1. +6 −0 include/spitfire/util/queue.h
@@ -107,8 +107,14 @@ namespace spitfire
if (!items.empty()) {
pItem = items.front();
items.pop_front();
+
+ if (!items.empty()) {
+ // Tell anyone listening that there is still an item in the queue
+ soAction.Signal();
+ }
}
}
+
return pItem;
}
}

0 comments on commit b015183

Please sign in to comment.