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

Method putCleanBuffer

src/burp/BurpTasks.cpp:467–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void BackupRelationTask::putCleanBuffer(IOBuffer* buf)
468{
469 Item* item = static_cast<Item*>(buf->getItem());
470 {
471 MutexLockGuard guard(item->m_mutex, FB_FUNCTION);
472
473 if (item->m_cleanBuffers.isEmpty())
474 item->m_cleanCond.notifyOne();
475
476 item->m_cleanBuffers.push(buf);
477 }
478 buf->unlock();
479}
480
481void BackupRelationTask::initItem(BurpGlobals* tdgbl, Item& item)
482{

Callers 1

renewBufferMethod · 0.80

Calls 5

getItemMethod · 0.80
notifyOneMethod · 0.80
isEmptyMethod · 0.45
pushMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected