mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-27 22:01:29 +02:00
Fixed: Removed unneeded lock in Runner::run()
This commit is contained in:
parent
4b4bac7edd
commit
07145f9351
@ -589,8 +589,7 @@ namespace Runner {
|
||||
|
||||
//* Runs collect and draw in a secondary thread, unlocks and locks config to update cached values
|
||||
void run(const string& box, const bool no_update, const bool force_redraw) {
|
||||
atomic_lock lck(waiting);
|
||||
atomic_wait(active);
|
||||
if (active) atomic_wait(active);
|
||||
if (stopping or Global::resized) return;
|
||||
|
||||
if (box == "overlay") {
|
||||
|
Loading…
Reference in New Issue
Block a user