| 49 | namespace core { |
| 50 | |
| 51 | Processor::Processor(const std::string& name) |
| 52 | : Connectable(name), |
| 53 | ConfigurableComponent(), |
| 54 | logger_(logging::LoggerFactory<Processor>::getLogger()) { |
| 55 | has_work_.store(false); |
| 56 | // Setup the default values |
| 57 | state_ = DISABLED; |
| 58 | strategy_ = TIMER_DRIVEN; |
| 59 | loss_tolerant_ = false; |
| 60 | _triggerWhenEmpty = false; |
| 61 | scheduling_period_nano_ = MINIMUM_SCHEDULING_NANOS; |
| 62 | run_duration_nano_ = DEFAULT_RUN_DURATION; |
| 63 | yield_period_msec_ = DEFAULT_YIELD_PERIOD_SECONDS * 1000; |
| 64 | _penalizationPeriodMsec = DEFAULT_PENALIZATION_PERIOD_SECONDS * 1000; |
| 65 | max_concurrent_tasks_ = DEFAULT_MAX_CONCURRENT_TASKS; |
| 66 | active_tasks_ = 0; |
| 67 | yield_expiration_ = 0; |
| 68 | incoming_connections_Iter = this->_incomingConnections.begin(); |
| 69 | logger_->log_debug("Processor %s created UUID %s", name_, getUUIDStr()); |
| 70 | } |
| 71 | |
| 72 | Processor::Processor(const std::string& name, const utils::Identifier &uuid) |
| 73 | : Connectable(name, uuid), |
nothing calls this directly
no test coverage detected