#include <progressinterfacehelpers.hh>
◆ Ptr
◆ ProgressInterfaceMultiplexer()
254 {
255 }
ProgressStateInterface::Ptr parent
Definition progressinterfacehelpers.hh:238
static Ptr create(ProgressInterface::Ptr child)
Definition progressinterfacehelpers.cc:78
◆ create()
◆ createProgressInterface()
263 {
266
267 boost::mutex::scoped_lock
const l(
mut);
269
270 return child;
271 }
uint8_t data
Definition blob-tests.cc:36
std::shared_ptr< ChildData > Ptr
Definition progressinterfacehelpers.hh:190
static Ptr create()
Definition progressinterfacehelpers.cc:205
static Ptr create(ProgressInterfaceMultiplexer::Ptr parent, ChildData::Ptr data)
Definition progressinterfacehelpers.cc:239
std::shared_ptr< Child > Ptr
Definition progressinterfacehelpers.hh:212
std::set< ChildData::Ptr > children
Definition progressinterfacehelpers.hh:239
boost::mutex mut
Definition progressinterfacehelpers.hh:237
PageList const l
Definition compression-tests.cc:33
◆ unsubscribe()
| void Scroom::Utils::ProgressInterfaceMultiplexer::unsubscribe |
( |
const ChildData::Ptr & |
data | ) |
|
|
private |
274 {
275 boost::mutex::scoped_lock
const l(
mut);
277 }
◆ updateProgressState()
| void Scroom::Utils::ProgressInterfaceMultiplexer::updateProgressState |
( |
| ) |
|
|
private |
280 {
283 int workers = 0;
284
285 boost::mutex::scoped_lock
const l(
mut);
287 {
288 boost::mutex::scoped_lock const child_lock(child->mut);
289 switch(child->state)
290 {
292 break;
295 {
297 }
299 workers++;
300 break;
303 {
305 }
307 workers++;
308 break;
311 {
313 }
315 workers++;
316 break;
317 }
318 }
319
321
323 {
325 {
326 child->clearFinished();
327 }
328 }
329 }
State
Definition progressinterfacehelpers.hh:30
@ WAITING
Definition progressinterfacehelpers.hh:32
@ IDLE
Definition progressinterfacehelpers.hh:31
@ WORKING
Definition progressinterfacehelpers.hh:33
@ FINISHED
Definition progressinterfacehelpers.hh:34
stub progress
Definition progressinterfaceconversion-tests.cc:65
◆ Child
◆ children
| std::set<ChildData::Ptr> Scroom::Utils::ProgressInterfaceMultiplexer::children |
|
private |
◆ mut
| boost::mutex Scroom::Utils::ProgressInterfaceMultiplexer::mut |
|
private |
◆ parent
The documentation for this class was generated from the following files: