| 275 | } |
| 276 | |
| 277 | static void *bootstrap_thread_execute(void *opaque) { |
| 278 | bootstrap_thread_call_t *call = opaque; |
| 279 | atomic_fetch_add(call->ready, 1); |
| 280 | while (!atomic_load(call->go)) { |
| 281 | const struct timespec pause = {0, 1000000L}; |
| 282 | (void)cbm_nanosleep(&pause, NULL); |
| 283 | } |
| 284 | call->status = cbm_daemon_bootstrap_execute_with_ops(call->config, call->ops, &call->result); |
| 285 | return NULL; |
| 286 | } |
| 287 | |
| 288 | static cbm_daemon_process_role_t classify(int argc, char **argv) { |
| 289 | return cbm_daemon_process_role(argc, argv); |
nothing calls this directly
no test coverage detected