Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Radian

Radian

Radian has asked 2 questions and find answers to 0 problems.

Stats

10
EtPoint
0
Vote count
2
questions
0
answers

About

volatile bool live = true;
volatile int exit_code = ERR_SUCCESS;
volatile bool good = true;
int main() {
          while(live) {
                do_something(good);
                if(dead) {
                      exit(exit_code);
                }
          }
          return 0;
}