diff options
| author | Martin Ridgers <[email protected]> | 2021-09-16 17:08:01 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-16 17:08:01 +0200 |
| commit | 8da2c13a34fd6394aecaf19490d65a8a84592e3c (patch) | |
| tree | 702cb3aec8145209fb5d8e39d8bf6d1432dd1a33 /zencore/session.cpp | |
| parent | Another missing include (diff) | |
| parent | Compact binary package caching support (#9) (diff) | |
| download | zen-8da2c13a34fd6394aecaf19490d65a8a84592e3c.tar.xz zen-8da2c13a34fd6394aecaf19490d65a8a84592e3c.zip | |
Merge main into linux-mac
Diffstat (limited to 'zencore/session.cpp')
| -rw-r--r-- | zencore/session.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/zencore/session.cpp b/zencore/session.cpp index 195a9d97c..d57d3685b 100644 --- a/zencore/session.cpp +++ b/zencore/session.cpp @@ -1,3 +1,5 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + #include "zencore/session.h" #include <zencore/uid.h> @@ -6,16 +8,15 @@ namespace zen { -static Oid GlobalSessionId; +static Oid GlobalSessionId; static std::once_flag SessionInitFlag; -Oid GetSessionId() +Oid +GetSessionId() { - std::call_once(SessionInitFlag, [&] { - GlobalSessionId.Generate(); - }); + std::call_once(SessionInitFlag, [&] { GlobalSessionId.Generate(); }); - return GlobalSessionId; + return GlobalSessionId; } -}
\ No newline at end of file +} // namespace zen
\ No newline at end of file |