We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb241f commit d849d3fCopy full SHA for d849d3f
src/nsolid/nsolid_api.h
@@ -614,7 +614,7 @@ class EnvList {
614
nsuv::ns_mutex map_lock_;
615
// A map of all Environments in the process.
616
std::map<uint64_t, SharedEnvInst> env_map_;
617
- uint64_t main_thread_id_ = 0xFFFFFFFFFFFFFFFF;
+ std::atomic<uint64_t> main_thread_id_ = {0xFFFFFFFFFFFFFFFF};
618
// Lock EnvList while all command queues are being processed. This is to
619
// prevent ~EnvList from running while processing all commands.
620
nsuv::ns_mutex command_lock_;
0 commit comments