Bottleneck clear should wait instead of try
This commit is contained in:
@@ -111,7 +111,7 @@ void GetAPIMessager::mainUpdateBottleneckStats(const char userid[], const char s
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GetAPIMessager::mainClearBottleneckStats(const char userid[]) {
|
void GetAPIMessager::mainClearBottleneckStats(const char userid[]) {
|
||||||
if (pthread_mutex_trylock(&statMutex))
|
if (pthread_mutex_lock(&statMutex))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bottleneckStats.erase(userid);
|
bottleneckStats.erase(userid);
|
||||||
|
|||||||
Reference in New Issue
Block a user