MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / FancyRefPtr

Method FancyRefPtr

Kernel/include/refptr.h:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16public:
17 template<class U>
18 FancyRefPtr(const FancyRefPtr<U>& s, T* p){
19 obj = p;
20 refCount = s.getRefCount();
21
22 __sync_fetch_and_add(refCount, 1);
23 }
24
25 FancyRefPtr(){
26 refCount = nullptr;

Callers

nothing calls this directly

Calls 2

InfoFunction · 0.85
getRefCountMethod · 0.80

Tested by

no test coverage detected