...世界上最受推崇、设计最精良的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu, C++ Coding Standards
...世界上最受推崇、设计最精良的 C++ 库项目之一。
确定 strand 是否在当前线程中运行。
bool running_in_this_thread() const;
true 如果当前线程正在执行一个通过 post()、dispatch() 或 defer() 提交到 strand 的函数。否则返回 false。
true
post()
dispatch()
defer()
false