File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
keyvi/include/keyvi/index/internal Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -211,16 +211,17 @@ std::cout << "flush" << std::endl;
211211 Compile (&payload);
212212 });
213213 } else {
214- std::shared_mutex m;
215- std::condition_variable_any c;
216- std::shared_lock lock (m);
217- compiler_active_object_ ([&m, & c](IndexPayload& payload) {
214+ std::mutex m;
215+ std::condition_variable c;
216+ std::unique_lock<std::mutex> lock (m);
217+ compiler_active_object_ ([&c](IndexPayload& payload) {
218218
219219 PersistDeletes (&payload);
220220 Compile (&payload);
221- std::shared_lock waitLock (m);
221+ // std::unique_lock<std::mutex> waitLock(m);
222222 // waitLock.unlock();
223223 // lock.unlock();
224+ // waitLock.release();
224225 c.notify_all ();
225226 std::cout << " compile done" << std::endl;
226227 });
You can’t perform that action at this time.
0 commit comments