MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setIODevice

Method setIODevice

source/core/StarBTreeDatabase.cpp:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void BTreeDatabase::setIODevice(IODevicePtr device) {
93 WriteLocker writeLocker(m_lock);
94 checkIfOpen("setIODevice", false);
95 m_device = std::move(device);
96}
97
98bool BTreeDatabase::isOpen() const {
99 ReadLocker readLocker(m_lock);

Callers 5

openDatabaseMethod · 0.80
mainFunction · 0.80
testBTreeDatabaseFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

testBTreeDatabaseFunction · 0.64
TESTFunction · 0.64