| 95 | } |
| 96 | |
| 97 | void thread2() |
| 98 | { |
| 99 | // This is a thread. It will loop until it is told that it should terminate. |
| 100 | while (should_stop() == false) |
| 101 | { |
| 102 | dlog << LINFO << "thread2(): hurray threads!"; |
| 103 | dlib::sleep(800); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | }; |
| 108 |