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

Method Lock

src/jrd/lck.cpp:1458–1482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1456}
1457
1458Lock::Lock(thread_db* tdbb, USHORT length, lck_t type, void* object, lock_ast_t ast)
1459: lck_dbb(tdbb->getDatabase()),
1460 lck_attachment(NULL),
1461 lck_compatible(NULL),
1462 lck_compatible2(NULL),
1463 lck_ast(ast),
1464 lck_object(object),
1465 lck_next(NULL),
1466 lck_prior(NULL),
1467#ifdef DEBUG_LCK_LIST
1468 lck_next_type(0),
1469 lck_prev_type(0),
1470#endif
1471 lck_collision(NULL),
1472 lck_identical(NULL),
1473 lck_id(0),
1474 lck_owner_handle(get_owner_handle(tdbb, type)),
1475 lck_length(length),
1476 lck_type(type),
1477 lck_logical(LCK_none),
1478 lck_physical(LCK_none),
1479 lck_data(0)
1480{
1481 lck_key.key_long = 0;
1482}
1483
1484Lock::~Lock()
1485{

Callers

nothing calls this directly

Calls 2

get_owner_handleFunction · 0.85
getDatabaseMethod · 0.80

Tested by

no test coverage detected