| 91 | typename pipe |
| 92 | > |
| 93 | void threadproc2 ( |
| 94 | void* param |
| 95 | ) |
| 96 | { |
| 97 | add_running_thread(); |
| 98 | pipe& p = *static_cast<pipe*>(param); |
| 99 | try |
| 100 | { |
| 101 | |
| 102 | int last = -1; |
| 103 | int cur; |
| 104 | while (p.dequeue(cur)) |
| 105 | { |
| 106 | DLIB_TEST(last < cur); |
| 107 | last = cur; |
| 108 | } |
| 109 | auto_mutex M(m); |
| 110 | } |
| 111 | catch(exception& e) |
| 112 | { |
| 113 | auto_mutex M(m); |
| 114 | found_error = true; |
| 115 | cout << "\n\nERRORS FOUND" << endl; |
| 116 | cout << e.what() << endl; |
| 117 | dlog << LWARN << "ERRORS FOUND"; |
| 118 | dlog << LWARN << e.what(); |
| 119 | p.disable(); |
| 120 | } |
| 121 | remove_running_thread(); |
| 122 | } |
| 123 | |
| 124 | |
| 125 |
nothing calls this directly
no test coverage detected