Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 51 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. bool working = false;
  2. void do_process()
  3. {
  4.     while(working)
  5.     {
  6.        // do some stuff
  7.     }
  8. }
  9.  
  10. void btnStart()
  11. {
  12.     working = true;
  13.     do_process();
  14. }
  15.  
  16. void btnEnd()
  17. {
  18.     working = false;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top