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