Lock the database for a read request
| 115 | |
| 116 | // Lock the database for a read request |
| 117 | void DatabaseConnection::lockForWrite() { |
| 118 | return; |
| 119 | if (dbLocked) |
| 120 | return; |
| 121 | global.dbLock->lockForWrite(); |
| 122 | dbLocked = Write; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | // Unlock the database |
no outgoing calls