Core‐local cache of weak pointers to a shared object.
Synopsis
Declared in <folly/concurrency/CoreCachedSharedPtr.h>
template<
class T,
size_t kMaxSlots = kCoreCachedSharedPtrDefaultMaxSlots>
class CoreCachedWeakPtr;
Description
Mirrors the core‐local sharding of CoreCachedSharedPtr for weak references, reducing contention when observing the pointer.
Member Functions
Name |
Description |
|
Constructors |
Returns the weak pointer cached for the current core. |
|
Locks the core‐local weak pointer into a shared pointer. |
|
|
Created with MrDocs