• Dominik Charousset's avatar
    Tie lifetime of meta objects table to CAF threads · 4e70994d
    Dominik Charousset authored
    Fixes undefined behavior if an application leaves `main` while the
    threads started by CAF are still running. Usually, an application
    destroys the `actor_system` before leaving `main`. However, some
    applications may use the `main` function only for spinning up threads.
    In this case, the meta objects table must exceed the lifetime of the
    static helper object.
    4e70994d
middleman.cpp 19 KB