mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Switch to atomic_bool for thread synchronisation.
This commit is contained in:
parent
5c66c21f53
commit
573a01212b
3 changed files with 7 additions and 5 deletions
|
|
@ -17,9 +17,9 @@
|
|||
#include "item_db_loader.h"
|
||||
|
||||
#include <fstream>
|
||||
#include "json.hpp"
|
||||
#include "../json/json.hpp"
|
||||
|
||||
void read_items_db(std::string items_db, std::map<SteamItemDef_t, std::map<std::string, std::string>> *items, bool *is_loadedb)
|
||||
void read_items_db(std::string items_db, std::map<SteamItemDef_t, std::map<std::string, std::string>> *items, std::atomic_bool *is_loadedb)
|
||||
{
|
||||
std::ifstream items_file(items_db);
|
||||
// If there is a file and we opened it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue