PengZheng opened a new pull request, #753: URL: https://github.com/apache/celix/pull/753
This PR fixes a long-standing issue #215 by implementing async-signal-safe launcher shutdown. Without making our event loop more powerful (like [libuv](https://docs.libuv.org/en/v1.x/design.html)), I think setting a flag to be checked by an periodic scheduled event callback is the best we can do. So here it is. This PR also makes `celix_launcher_triggerStop` safer. Previously a bundle may initiate a framework shutdown, which will cause `celix_framework_waitForStop` to return without noticing the launcher. In that case, `celix_launcher_triggerStop` might reference a to-be-destroyed framework instance to wreck havoc. Now we prevent it from happening with `g_launcher.lock`. -- 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]
