[PATCH] D65708: [NFC][DirectoryWatchedTests] Unlocking mutexes before signaling condition variable.
Puyan Lotfi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 18:30:30 PDT 2019
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL367968: [NFC][DirectoryWatchedTests] Unlocks mutexes before signaling condition variable (authored by zer0, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D65708?vs=213220&id=213510#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65708/new/
https://reviews.llvm.org/D65708
Files:
cfe/trunk/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
Index: cfe/trunk/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
===================================================================
--- cfe/trunk/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
+++ cfe/trunk/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
@@ -132,8 +132,10 @@
} else {
ExpectedInitial.erase(It);
}
- if (result())
+ if (result()) {
+ L.unlock();
ResultIsReady.notify_one();
+ }
}
void consumeNonInitial(DirectoryWatcher::Event E) {
@@ -151,8 +153,10 @@
} else {
ExpectedNonInitial.erase(It);
}
- if (result())
+ if (result()) {
+ L.unlock();
ResultIsReady.notify_one();
+ }
}
// This method is used by DirectoryWatcher.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65708.213510.patch
Type: text/x-patch
Size: 742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190806/243fafe9/attachment-0001.bin>
More information about the cfe-commits
mailing list