synchronous and asynchronous event based c++ executor libray