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

Function LCK_OWNER_ID_ATT

src/jrd/lck.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105inline LOCK_OWNER_T LCK_OWNER_ID_ATT(thread_db* tdbb)
106{
107 if (tdbb->getDatabase()->dbb_flags & DBB_shared)
108 return (LOCK_OWNER_T) getpid() << 32 | tdbb->getAttachment()->att_lock_owner_id;
109
110 return (LOCK_OWNER_T) getpid() << 32 | tdbb->getDatabase()->dbb_lock_owner_id;
111}
112
113inline SLONG* LCK_OWNER_HANDLE_DBB(thread_db* tdbb)
114{

Callers 1

LCK_initFunction · 0.85

Calls 2

getDatabaseMethod · 0.80
getAttachmentMethod · 0.45

Tested by

no test coverage detected