envoyproxy/envoy

thread_local: thread safety follow ups

Open

#13,313 建立於 2020年9月29日

在 GitHub 查看
 (1 留言) (0 反應) (1 負責人)C++ (5,373 fork)batch import
area/thread_localhelp wanted

倉庫指標

Star
 (27,997 star)
PR 合併指標
 (平均合併 8天) (30 天內合併 378 個 PR)

描述

A couple of follow ups to https://github.com/envoyproxy/envoy/pull/12833:

  1. Try to make the API a bit cleaner with templating: https://github.com/envoyproxy/envoy/pull/12833#discussion_r496594468
  2. Build clang-tidy plugin to check for any TLS functions capturing "this", and fix all current examples. (There are several that capture "this" in the initial set() call, and some that have been "fixed" to use shared_from_this and weak_ptr.)

貢獻者指南