An synchronous event system for C++11