Skip to content

Commit 307f8a8

Browse files
committed
Fixing up git rebase -X theirs accidents.
1 parent 201013b commit 307f8a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_iostream.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void noisy_funct_dual(const std::string &msg, const std::string &emsg) {
3535
// simply repeatedly write to std::cerr until stopped
3636
// redirect is called at some point to test the safety of scoped_estream_redirect
3737
struct TestThread {
38-
TestThread() : t_{nullptr}, stop_{false} {
38+
TestThread() : stop_{false} {
3939
auto thread_f = [this] {
4040
static std::mutex cout_mutex;
4141
while (!stop_) {
@@ -60,7 +60,7 @@ struct TestThread {
6060

6161
void stop() { stop_ = true; }
6262

63-
void join() {
63+
void join() const {
6464
py::gil_scoped_release gil_lock;
6565
t_->join();
6666
}
@@ -70,7 +70,7 @@ struct TestThread {
7070
std::this_thread::sleep_for(std::chrono::milliseconds(50));
7171
}
7272

73-
std::thread * t_;
73+
std::thread *t_{nullptr};
7474
std::atomic<bool> stop_;
7575
};
7676

0 commit comments

Comments
 (0)