From 34fc6f243f8a462f4b2370a9fe5376df1ca08f1d Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Fri, 14 Sep 2012 21:42:11 +0200 Subject: Move busy port flag --- erts/emulator/beam/bif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'erts/emulator/beam/bif.c') diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index 5ea441ad81..dc0dcbabd6 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -1908,7 +1908,7 @@ do_send(Process *p, Eterm to, Eterm msg, int suspend) { /* We have waited for locks, trace schedule ports */ if (pt) { - erts_aint32_t state; + erts_aint32_t flags; if (IS_TRACED_FL(pt, F_TRACE_SCHED_PORTS)) { trace_sched_ports_where(pt, am_in, am_command); } @@ -1916,9 +1916,9 @@ do_send(Process *p, Eterm to, Eterm msg, int suspend) { profile_runnable_port(pt, am_active); } - state = erts_atomic32_read_nob(&pt->state); + flags = erts_atomic32_read_rb(&pt->sched.flags); /* XXX let port_command handle the busy stuff !!! */ - if (state & ERTS_PORT_SFLG_PORT_BUSY) { + if (flags & ERTS_PTS_FLG_BUSY) { if (suspend) { erts_suspend(p, ERTS_PROC_LOCK_MAIN, pt); if (erts_system_monitor_flags.busy_port) { -- cgit v1.2.3