mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-15 00:44:49 +12: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 a new issue