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

Function removeHandle

src/yvalve/why.cpp:715–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713
714template <typename T>
715void removeHandle(GenericMap<Pair<NonPooled<FB_API_HANDLE, T*> > >* map, FB_API_HANDLE& handle)
716{
717 if (handle)
718 {
719 WriteLockGuard sync(handleMappingLock, FB_FUNCTION);
720 bool removed = map->remove(handle);
721
722 fb_assert(removed);
723 (void) removed; // avoid warning in prod build
724 handle = 0;
725 }
726}
727
728template <typename T>
729RefPtr<T> translateHandle(GlobalPtr<GenericMap<Pair<NonPooled<FB_API_HANDLE, T*> > > >& map,

Callers 4

destroyMethod · 0.85
~IscStatementMethod · 0.85
enterDtcMethod · 0.85
~YAttachmentMethod · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected