| 146 | |
| 147 | template <typename DBD> |
| 148 | void* DBDBthread(void* arg) { |
| 149 | auto d = static_cast<DBD*>(arg); |
| 150 | while(!exitFlag){ |
| 151 | typename DBD::ScopedPtr ptr; |
| 152 | d->Read(&ptr); |
| 153 | |
| 154 | // If DBD is DoublyBufferedData<T, TLS, false>, may cause deadlock. |
| 155 | bthread_usleep(100 * 1000); |
| 156 | } |
| 157 | |
| 158 | return NULL; |
| 159 | } |
| 160 | |
| 161 | template <typename DBD> |
| 162 | void DBDMultiBthread() { |
nothing calls this directly
no test coverage detected