| 85 | private: |
| 86 | |
| 87 | void thread1() |
| 88 | { |
| 89 | // This is a thread. It will loop until it is told that it should terminate. |
| 90 | while (should_stop() == false) |
| 91 | { |
| 92 | dlog << LINFO << "thread1(): hurray threads!"; |
| 93 | dlib::sleep(700); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | void thread2() |
| 98 | { |