First cut at Drawable fundamentals (#983)
Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
This commit is contained in:
committed by
Bart Louwers
parent
42afe4189c
commit
14b53e54ec
23
src/mbgl/util/identity.cpp
Normal file
23
src/mbgl/util/identity.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <mbgl/util/identity.hpp>
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace {
|
||||
// This is not in the class declaration to minimize include dependencies
|
||||
static std::atomic<std::int64_t> nextId = 1;
|
||||
} // anonymous namespace
|
||||
|
||||
namespace mbgl {
|
||||
namespace util {
|
||||
|
||||
const SimpleIdentity SimpleIdentity::Empty = {emptyID};
|
||||
|
||||
SimpleIdentity::SimpleIdentity()
|
||||
: uniqueID(nextId++)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
} // namespace util
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user