static void thread_main(void *arg) { CTX *ctx = (CTX*) arg; ctx->fn(ctx->addr, ctx->id, ctx->num); acl_myfree(ctx); }