MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / Ref

Method Ref

extern/re2/re2/regexp.cc:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79static std::map<Regexp*, int>* ref_map;
80
81int Regexp::Ref() {
82 if (ref_ < kMaxRef)
83 return ref_;
84
85 MutexLock l(ref_mutex);
86 return (*ref_map)[this];
87}
88
89// Increments reference count, returns object as convenience.
90Regexp* Regexp::Incref() {

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64