| 148 | atomic_exchange_and_add(&count, c); |
| 149 | } |
| 150 | void increment_conn(unsigned int c) const volatile { |
| 151 | atomic_exchange_and_add(&conn_count, c); |
| 152 | while (wait_conn != 0 && conn_count < wait_conn) { |
| 153 | sleep(1); |
| 154 | } |
| 155 | // fprintf(stderr, "wait_conn=%ld done\n", wait_conn); |
| 156 | } |
| 157 | }; |
| 158 | |
| 159 | struct hstest_thread { |
no test coverage detected