MCPcopy Create free account
hub / github.com/facebook/react / ThreadLocalProxy

Method ThreadLocalProxy

scripts/perf-counters/src/thread-local.h:706–708  ·  view source on GitHub ↗

* Constructor that has to be called from a thread-neutral place. */

Source from the content-addressed store, hash-verified

704 * Constructor that has to be called from a thread-neutral place.
705 */
706 ThreadLocalProxy() : m_key(0) {
707 ThreadLocalCreateKey(&m_key, nullptr);
708 }
709
710 T *get() const {
711 T *obj = (T*)pthread_getspecific(m_key);

Callers

nothing calls this directly

Calls 1

ThreadLocalCreateKeyFunction · 0.85

Tested by

no test coverage detected