Add a c++ event queue