make is_created atomic

This commit is contained in:
Xuan Son Nguyen
2026-07-25 02:13:07 +02:00
parent a1de37181e
commit 20cc96ff43
+2 -1
View File
@@ -1,5 +1,6 @@
#pragma once
#include <atomic>
#include <cstdio>
#include <string>
#include <vector>
@@ -52,7 +53,7 @@ struct common_subproc {
private:
subprocess_s proc {};
bool is_created = false;
std::atomic<bool> is_created{false};
bool has_handle() const;
};