This project is read-only.
1

Closed

Make library pay to play

description

I'm running into a hang if I even include the rxcpp.hpp header. This seems to be caused by this line in rx-eventloop.hpp:
RXCPP_SELECT_ANY const scheduler event_loop::instance = make_scheduler<event_loop>();

This happens with no other code changes, only adding the rxcpp include. The hang is a separate issue that I'm looking into on our side.

Is there some reason why this must happen on load? This library should defer initialization until it is really needed.
Closed Apr 12, 2015 at 6:18 AM by kirkshoop

comments

kirkshoop wrote Apr 12, 2015 at 6:18 AM

Thanks for the report. This issue should be fixed. Although there is now a race condition if two threads overlap calls to make_event_loop()