void LoaderQueue::loadNext()
{
- LYXERR(Debug::GRAPHICS) << "LoaderQueue: "
- << cache_queue_.size()
- << " items in the queue" << endl;
+ LYXERR(Debug::GRAPHICS, "LoaderQueue: "
+ << cache_queue_.size() << " items in the queue");
int counter = s_numimages_;
while (cache_queue_.size() && counter--) {
Cache::ItemPtr ptr = cache_queue_.front();
{
s_numimages_ = numimages;
s_millisecs_ = millisecs;
- LYXERR(Debug::GRAPHICS) << "LoaderQueue: priority set to "
+ LYXERR(Debug::GRAPHICS, "LoaderQueue: priority set to "
<< s_numimages_ << " images at a time, "
- << s_millisecs_ << " milliseconds between calls"
- << endl;
+ << s_millisecs_ << " milliseconds between calls");
}
void LoaderQueue::startLoader()
{
- LYXERR(Debug::GRAPHICS) << "LoaderQueue: waking up" << endl;
+ LYXERR(Debug::GRAPHICS, "LoaderQueue: waking up");
running_ = true ;
timer.setTimeout(s_millisecs_);
timer.start();
{
timer.stop();
running_ = false ;
- LYXERR(Debug::GRAPHICS) << "LoaderQueue: I'm going to sleep" << endl;
+ LYXERR(Debug::GRAPHICS, "LoaderQueue: I'm going to sleep");
}