envoyproxy/envoy

thread_local: thread safety follow ups

Open

#13.313 geöffnet am 29. Sept. 2020

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)C++ (5.373 Forks)batch import
area/thread_localhelp wanted

Repository-Metriken

Stars
 (27.997 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T) (378 gemergte PRs in 30 T)

Beschreibung

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.)

Contributor Guide