跨模块、线程与 C API 的错误边界 | C++

本章覆盖:exception 不应无意穿越 C ABI;thread entry exception;callback boundary;plugin / shared library boundary;logging;translate exception to status;cleanup;noexcept boundary;crash vs recover;企业系统要明确“错误在哪一层被处理”。

本章知识点

  • exception 不应无意穿越 C ABI
  • thread entry exception
  • callback boundary
  • plugin / shared library boundary
  • logging
  • translate exception to status
  • cleanup
  • noexcept boundary
  • crash vs recover
  • 企业系统要明确“错误在哪一层被处理”