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

Method getBuffer

src/jrd/replication/Manager.cpp:230–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230UCharBuffer* Manager::getBuffer()
231{
232 MutexLockGuard guard(m_buffersMutex, FB_FUNCTION);
233
234 const auto buffer = m_buffers.hasData() ?
235 m_buffers.pop() : FB_NEW_POOL(getPool()) UCharBuffer(getPool());
236
237 fb_assert(buffer->isEmpty());
238 buffer->resize(sizeof(Block));
239 return buffer;
240}
241
242void Manager::releaseBuffer(UCharBuffer* buffer)
243{

Callers 15

flushMethod · 0.45
storeBlobMethod · 0.45
startTransactionMethod · 0.45
cleanupTransactionMethod · 0.45
ManagerMethod · 0.45
PIO_init_dataFunction · 0.45
PIO_init_dataFunction · 0.45
putDataMethod · 0.45
attachMethod · 0.45
doStartMethod · 0.45
isc_start_transactionMethod · 0.45
parseSQLDAFunction · 0.45

Calls 4

hasDataMethod · 0.45
popMethod · 0.45
isEmptyMethod · 0.45
resizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36