[async] touchups

This commit is contained in:
Milo Turner 2020-02-19 21:10:39 -05:00
parent fbe01e351b
commit 385069e0a3
1 changed files with 4 additions and 5 deletions

View File

@ -190,10 +190,9 @@ static void spawn_backend(
struct ax_backend** out_backend)
{
pthread_t thid;
struct backend_init_ctxt init = {
.rgn = init_rgn,
.err = NULL,
};
struct backend_init_ctxt init;
init.rgn = init_rgn;
init.err = NULL;
pthread_mutex_init(&init.mx, NULL);
pthread_cond_init(&init.cv, NULL);
pthread_mutex_lock(&init.mx);
@ -219,7 +218,7 @@ static void* backend_worker(void* arg)
{
struct backend_init_ctxt* init = arg;
struct rgn* bac_rgn = ralloc_typed(init->rgn, struct rgn, 1);
struct rgn bac_rgn[1];
rgn_init(bac_rgn, ax__backend_desired_region_size);
struct ax_backend* bac;