瀏覽代碼

not use mutex

kdmcser 6 月之前
父節點
當前提交
75aa89ae6e
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      lib/bonuses/Updaters.cpp
  2. 0 1
      lib/bonuses/Updaters.h

+ 0 - 1
lib/bonuses/Updaters.cpp

@@ -200,7 +200,6 @@ JsonNode OwnerUpdater::toJsonNode() const
 
 std::shared_ptr<Bonus> OwnerUpdater::createUpdatedBonus(const std::shared_ptr<Bonus> & b, const CBonusSystemNode & context)
 {
-	std::lock_guard lock(mutex);
 	owner = context.getOwner();
 	
 	if(owner == PlayerColor::UNFLAGGABLE)

+ 0 - 1
lib/bonuses/Updaters.h

@@ -125,7 +125,6 @@ public:
 class DLL_LINKAGE OwnerUpdater : public IUpdater
 {
 protected:
-	std::mutex mutex;
 	PlayerColor owner;
 
 public: