Skip to content

Commit

Permalink
fix tsan
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Mar 6, 2024
1 parent 8f4fe66 commit 72fb5fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Foundation/include/Poco/ProcessRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Foundation_API ProcessRunner: public Poco::Runnable
std::atomic<int> _runCount;
Stopwatch _sw;
std::string _error;
Poco::FastMutex _mutex;
mutable Poco::FastMutex _mutex;
};


Expand Down Expand Up @@ -219,6 +219,8 @@ inline void ProcessRunner::setError(const std::string& msg)

inline const std::string& ProcessRunner::error() const
{
Poco::FastMutex::ScopedLock l(_mutex);

return _error;
}

Expand Down

0 comments on commit 72fb5fe

Please sign in to comment.