Merge pull request #1499 from mapbox/clang-3.7-libcpp-atomic_flag-initialized
Initialize the atomic_flag in the class definition
This commit is contained in:
@@ -13,7 +13,6 @@ TileData::TileData(const TileID& id_, const SourceInfo& source_)
|
||||
: id(id_),
|
||||
name(id),
|
||||
state(State::initial),
|
||||
parsing(ATOMIC_FLAG_INIT),
|
||||
source(source_),
|
||||
env(Environment::Get()),
|
||||
debugBucket(debugFontBuffer) {
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
const TileID id;
|
||||
const std::string name;
|
||||
std::atomic<State> state;
|
||||
std::atomic_flag parsing;
|
||||
std::atomic_flag parsing = ATOMIC_FLAG_INIT;
|
||||
|
||||
protected:
|
||||
// Set the internal parsing state to true so we prevent
|
||||
|
||||
Reference in New Issue
Block a user