A simple queue implementation of std::function to execute functions deferred or inside another thread. All operations are thread safe.