This maybe sound strange to you but I\'m too lazy to write everytime like
if (threadAlive) { threadAlive = false; } else { th
Very simple:
threadAlive = ! threadAlive;