PengZheng opened a new pull request #402:
URL: https://github.com/apache/celix/pull/402
```C
static void *fw_eventDispatcher(void *fw) {
framework_pt framework = (framework_pt) fw;
celixThreadMutex_lock(&framework->dispatcher.mutex);
bool active = framework->dispatcher.active;
celixThreadMutex_unlock(&framework->dispatcher.mutex);
while (active) { //first check active then handle events
fw_handleEvents(framework);
celixThreadMutex_lock(&framework->dispatcher.mutex);
active = framework->dispatcher.active;
celixThreadMutex_unlock(&framework->dispatcher.mutex);
}
//omitted
}
```
If shell_cmd happens to shutdown the framework during this
first-check-then-do race window, deadlock follows.
I suspect it leads to CI failure like this:
https://github.com/apache/celix/runs/5562712613?check_suite_focus=true#step:5:3036
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]