关键节点
This commit is contained in:
13
editor/app/State/EditorSelectionStamp.h
Normal file
13
editor/app/State/EditorSelectionStamp.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
inline std::uint64_t GenerateEditorSelectionStamp() {
|
||||
static std::atomic<std::uint64_t> counter = 0u;
|
||||
return counter.fetch_add(1u, std::memory_order_relaxed) + 1u;
|
||||
}
|
||||
|
||||
} // namespace XCEngine::UI::Editor::App
|
||||
Reference in New Issue
Block a user