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

Method manualLock

src/jrd/Attachment.cpp:1043–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1041}
1042
1043void StableAttachmentPart::manualLock(ULONG& flags, const ULONG whatLock)
1044{
1045 fb_assert(!(flags & whatLock));
1046
1047 if (whatLock & ATT_async_manual_lock)
1048 {
1049 async.enter(FB_FUNCTION);
1050 flags |= ATT_async_manual_lock;
1051 }
1052
1053 if (whatLock & ATT_manual_lock)
1054 {
1055 mainSync.enter(FB_FUNCTION);
1056 flags |= ATT_manual_lock;
1057 }
1058}
1059
1060void StableAttachmentPart::manualUnlock(ULONG& flags)
1061{

Callers 3

internalAttachMethod · 0.80
create_attachmentFunction · 0.80
unwindAttachFunction · 0.80

Calls 1

enterMethod · 0.45

Tested by

no test coverage detected