MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / lockForWrite

Method lockForWrite

sql/databaseconnection.cpp:117–123  ·  view source on GitHub ↗

Lock the database for a read request

Source from the content-addressed store, hash-verified

115
116// Lock the database for a read request
117void DatabaseConnection::lockForWrite() {
118 return;
119 if (dbLocked)
120 return;
121 global.dbLock->lockForWrite();
122 dbLocked = Write;
123}
124
125
126// Unlock the database

Callers 15

createTableMethod · 0.80
initTableMethod · 0.80
incrementLidCounterMethod · 0.80
saveSettingMethod · 0.80
addEntryMethod · 0.80
expungeMethod · 0.80
createTableMethod · 0.80
updateUserMethod · 0.80
updateSyncStateMethod · 0.80
updateLastSyncDateMethod · 0.80
updateLastSyncNumberMethod · 0.80
setOrderMethod · 0.80

Calls

no outgoing calls

Tested by 4

setOrderMethod · 0.64
expungeMethod · 0.64
addMethod · 0.64
insertMethod · 0.64