Revert "Removed mutex locking from get and set of log level #4809"
This reverts commit 3eef49d5c9
.
This commit is contained in:
parent
9b09703c1a
commit
d2c94bfb04
|
@ -260,12 +260,14 @@ Log::setFilter(const char* maxPriority)
|
||||||
void
|
void
|
||||||
Log::setFilter(int maxPriority)
|
Log::setFilter(int maxPriority)
|
||||||
{
|
{
|
||||||
|
ArchMutexLock lock(m_mutex);
|
||||||
m_maxPriority = maxPriority;
|
m_maxPriority = maxPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Log::getFilter() const
|
Log::getFilter() const
|
||||||
{
|
{
|
||||||
|
ArchMutexLock lock(m_mutex);
|
||||||
return m_maxPriority;
|
return m_maxPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue