We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
namespace test_scoped_critical_section_ns
1 parent 009756f commit 58f155cCopy full SHA for 58f155c
tests/test_scoped_critical_section.cpp
@@ -12,6 +12,8 @@
12
# include <barrier>
13
#endif
14
15
+namespace test_scoped_critical_section_ns {
16
+
17
// Referenced test implementation: https://github.com/PyO3/pyo3/blob/v0.25.0/src/sync.rs#L874
18
class BoolWrapper {
19
public:
@@ -157,7 +159,11 @@ void test_scoped_critical_section2_same_object_no_deadlock(const py::handle &) {
157
159
158
160
161
162
+} // namespace test_scoped_critical_section_ns
163
164
TEST_SUBMODULE(scoped_critical_section, m) {
165
+ using namespace test_scoped_critical_section_ns;
166
167
m.attr("defined_THREAD_SANITIZER") =
168
#if defined(THREAD_SANITIZER)
169
true;
0 commit comments