mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-10 14:34:41 +12:00
reduce diff more
This commit is contained in:
parent
70b47d2ca8
commit
8c67967775
|
@ -304,9 +304,9 @@ namespace Runner {
|
||||||
string empty_bg;
|
string empty_bg;
|
||||||
bool pause_output = false;
|
bool pause_output = false;
|
||||||
sigset_t mask;
|
sigset_t mask;
|
||||||
|
|
||||||
pthread_t runner_id;
|
pthread_t runner_id;
|
||||||
pthread_mutex_t mtx;
|
pthread_mutex_t mtx;
|
||||||
|
|
||||||
const unordered_flat_map<string, uint_fast8_t> box_bits = {
|
const unordered_flat_map<string, uint_fast8_t> box_bits = {
|
||||||
{"proc", 0b0000'0001},
|
{"proc", 0b0000'0001},
|
||||||
{"net", 0b0000'0100},
|
{"net", 0b0000'0100},
|
||||||
|
@ -383,7 +383,6 @@ namespace Runner {
|
||||||
thread_lock pt_lck(mtx);
|
thread_lock pt_lck(mtx);
|
||||||
if (pt_lck.status != 0) {
|
if (pt_lck.status != 0) {
|
||||||
Global::exit_error_msg = "Exception in runner thread -> pthread_mutex_lock error id: " + to_string(pt_lck.status);
|
Global::exit_error_msg = "Exception in runner thread -> pthread_mutex_lock error id: " + to_string(pt_lck.status);
|
||||||
Logger::error(Global::exit_error_msg);
|
|
||||||
Global::thread_exception = true;
|
Global::thread_exception = true;
|
||||||
Input::interrupt = true;
|
Input::interrupt = true;
|
||||||
stopping = true;
|
stopping = true;
|
||||||
|
@ -537,7 +536,6 @@ namespace Runner {
|
||||||
}
|
}
|
||||||
catch (const std::exception& e) {
|
catch (const std::exception& e) {
|
||||||
Global::exit_error_msg = "Exception in runner thread -> " + (string)e.what();
|
Global::exit_error_msg = "Exception in runner thread -> " + (string)e.what();
|
||||||
Logger::error(Global::exit_error_msg);
|
|
||||||
Global::thread_exception = true;
|
Global::thread_exception = true;
|
||||||
Input::interrupt = true;
|
Input::interrupt = true;
|
||||||
stopping = true;
|
stopping = true;
|
||||||
|
|
Loading…
Reference in a new issue