| 5202 | |
| 5203 | |
| 5204 | bool BufferDesc::addRefConditional(thread_db* tdbb, SyncType syncType) |
| 5205 | { |
| 5206 | if (!bdb_syncPage.lockConditional(syncType, FB_FUNCTION)) |
| 5207 | return false; |
| 5208 | |
| 5209 | ++bdb_use_count; |
| 5210 | |
| 5211 | if (syncType == SYNC_EXCLUSIVE) |
| 5212 | { |
| 5213 | bdb_exclusive = tdbb; |
| 5214 | ++bdb_writers; |
| 5215 | } |
| 5216 | |
| 5217 | tdbb->registerBdb(this); |
| 5218 | return true; |
| 5219 | } |
| 5220 | |
| 5221 | |
| 5222 | void BufferDesc::downgrade(SyncType syncType) |
no test coverage detected