MT#65612 RegThread: consider `stop_requested()` on `run()`

Check whether the thread was asked to be stopped,
instead on infinitely cycling through the true statement,
relying on the fact `getFactory4Di()` will always return
a safe and valid pointer.

Change-Id: Ibc27b725eaa2c183c50bff603f7d3115cdc57b3d
mr26.2
Donat Zenichev 2 weeks ago
parent d881e16d5e
commit f0193d91b7

@ -183,7 +183,7 @@ void RegThread::run() {
/* wait for sems to completely start up */
sleep(2);
while (true)
while (!stop_requested())
{
for (vector<RegInfo>::iterator it = registrations.begin();
it != registrations.end();
@ -201,7 +201,7 @@ void RegThread::run() {
}
void RegThread::on_stop() {
DBG("not stopping...\n");
DBG("stopping reg_agent thread.\n");
}
void RegThread::postEvent(AmEvent* ev) {

Loading…
Cancel
Save