aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/dist.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-06-19 17:06:25 +0200
committerRickard Green <[email protected]>2017-07-04 17:12:18 +0200
commit6b267b203c950db2879f254b6a9d3b7591115f9d (patch)
treec31b98bb30185a990754e3ab046be7246d22a829 /erts/emulator/beam/dist.h
parenta01de6873844ba510084090abec734c4166d71fa (diff)
downloadotp-6b267b203c950db2879f254b6a9d3b7591115f9d.tar.gz
otp-6b267b203c950db2879f254b6a9d3b7591115f9d.tar.bz2
otp-6b267b203c950db2879f254b6a9d3b7591115f9d.zip
Change some dist-entry types
Diffstat (limited to 'erts/emulator/beam/dist.h')
-rw-r--r--erts/emulator/beam/dist.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/erts/emulator/beam/dist.h b/erts/emulator/beam/dist.h
index 3e17645997..dcd5846ca5 100644
--- a/erts/emulator/beam/dist.h
+++ b/erts/emulator/beam/dist.h
@@ -161,13 +161,10 @@ erts_dsig_prepare(ErtsDSigData *dsdp,
goto fail;
}
if (no_suspend) {
- failure = ERTS_DSIG_PREP_CONNECTED;
- erts_smp_mtx_lock(&dep->qlock);
- if (dep->qflgs & ERTS_DE_QFLG_BUSY)
+ if (erts_smp_atomic32_read_acqb(&dep->qflgs) & ERTS_DE_QFLG_BUSY) {
failure = ERTS_DSIG_PREP_WOULD_SUSPEND;
- erts_smp_mtx_unlock(&dep->qlock);
- if (failure == ERTS_DSIG_PREP_WOULD_SUSPEND)
goto fail;
+ }
}
dsdp->proc = proc;
dsdp->dep = dep;