[async] touchups
This commit is contained in:
parent
fbe01e351b
commit
385069e0a3
|
@ -190,10 +190,9 @@ static void spawn_backend(
|
||||||
struct ax_backend** out_backend)
|
struct ax_backend** out_backend)
|
||||||
{
|
{
|
||||||
pthread_t thid;
|
pthread_t thid;
|
||||||
struct backend_init_ctxt init = {
|
struct backend_init_ctxt init;
|
||||||
.rgn = init_rgn,
|
init.rgn = init_rgn;
|
||||||
.err = NULL,
|
init.err = NULL;
|
||||||
};
|
|
||||||
pthread_mutex_init(&init.mx, NULL);
|
pthread_mutex_init(&init.mx, NULL);
|
||||||
pthread_cond_init(&init.cv, NULL);
|
pthread_cond_init(&init.cv, NULL);
|
||||||
pthread_mutex_lock(&init.mx);
|
pthread_mutex_lock(&init.mx);
|
||||||
|
@ -219,7 +218,7 @@ static void* backend_worker(void* arg)
|
||||||
{
|
{
|
||||||
struct backend_init_ctxt* init = 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);
|
rgn_init(bac_rgn, ax__backend_desired_region_size);
|
||||||
|
|
||||||
struct ax_backend* bac;
|
struct ax_backend* bac;
|
||||||
|
|
Loading…
Reference in New Issue