| 92 | } |
| 93 | |
| 94 | static void setup_thread(struct data *d, int nconns) |
| 95 | { |
| 96 | d->connects = nconns; |
| 97 | pthread_barrier_init(&d->barrier, NULL, 2); |
| 98 | pthread_barrier_init(&d->conn_barrier, NULL, 2); |
| 99 | pthread_create(&d->thread, NULL, connect_fn, d); |
| 100 | } |
| 101 | |
| 102 | static int test_maccept(struct data *d, int flags, int fixed) |
| 103 | { |