summaryrefslogtreecommitdiff
path: root/src/mbgl/util/id.cpp
blob: 4486194de44a950cd260dcf3335ffc71cbdf0669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <mbgl/util/id.hpp>

#include <atomic>

namespace mbgl {
namespace util {

uint64_t nextID() {
    static std::atomic<uint64_t> GUID { 0 };
    return GUID++;
}

} // namespace util
} // namespace mbgl