MCPcopy Create free account
hub / github.com/M66B/FairEmail / close

Method close

app/src/main/java/androidx/room/RoomDatabase.java:443–454  ·  view source on GitHub ↗

Closes the database if it is already open.

()

Source from the content-addressed store, hash-verified

441 * Closes the database if it is already open.
442 */
443 public void close() {
444 if (isOpen()) {
445 final Lock closeLock = mCloseLock.writeLock();
446 closeLock.lock();
447 try {
448 mInvalidationTracker.stopMultiInstanceInvalidation();
449 mOpenHelper.close();
450 } finally {
451 closeLock.unlock();
452 }
453 }
454 }
455
456 /**
457 * Asserts that we are not on the main thread.

Callers 15

countItemsMethod · 0.45
loadInitialMethod · 0.45
loadRangeMethod · 0.45
checkIdentityMethod · 0.45
hasRoomMasterTableMethod · 0.45
hasEmptySchemaMethod · 0.45
unlockMethod · 0.45
readForeignKeysMethod · 0.45
readColumnsMethod · 0.45
readIndicesMethod · 0.45
readIndexMethod · 0.45
readColumnsMethod · 0.45

Calls 4

isOpenMethod · 0.95
lockMethod · 0.65
unlockMethod · 0.45

Tested by

no test coverage detected