Skip to content

Commit

Permalink
mkclass: use std::atomic#atomic(T), not std::atomic#atomic()
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Feb 4, 2025
1 parent e51c017 commit 3d49d50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/mkclass/classcompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,9 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
if (field.Attributes & FANoStorage)
continue;

m_Header << "\tAtomicOrLocked<" << field.Type.GetRealType() << "> m_" << field.GetFriendlyName() << ";" << std::endl;
m_Header << "\ttypedef " << field.Type.GetRealType() << " " << field.GetFriendlyName() << "_t;" << std::endl
<< "\tAtomicOrLocked<" << field.GetFriendlyName() << "_t> m_" << field.GetFriendlyName()
<< " {" << field.GetFriendlyName() << "_t()};" << std::endl;
}

/* signal */
Expand Down

0 comments on commit 3d49d50

Please sign in to comment.