SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <thread> | |
| 2 | ||
| 3 | void main() {
| |
| 4 | - | |
| 4 | + | while(1) {
|
| 5 | - | while (true) {
|
| 5 | + | new std::thread([]() {
|
| 6 | - | std::thread *superThread = new std::thread([]() {
|
| 6 | + | static int i = 0; |
| 7 | - | int = 0; |
| 7 | + | while(1) ++i; |
| 8 | - | while (true) {
|
| 8 | + | }).detach(); |
| 9 | - | i ++; |
| 9 | + | |
| 10 | - | } |
| 10 | + |