diff options
author | Rickard Green <[email protected]> | 2012-08-20 13:48:29 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2012-12-03 21:18:08 +0100 |
commit | 56cef897ca3ad2377e34a6ea5800a54a28cbeb6e (patch) | |
tree | 0cbb2eba5b3de84cc8d22577af454f4ac2f38885 /erts/emulator/sys | |
parent | 7e789df8dd9c7d86e9cc354521a37aa598aa5ec8 (diff) | |
download | otp-56cef897ca3ad2377e34a6ea5800a54a28cbeb6e.tar.gz otp-56cef897ca3ad2377e34a6ea5800a54a28cbeb6e.tar.bz2 otp-56cef897ca3ad2377e34a6ea5800a54a28cbeb6e.zip |
Optimize management of port tasks
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r-- | erts/emulator/sys/common/erl_check_io.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c index 9ef861bfe4..9c78fe713b 100644 --- a/erts/emulator/sys/common/erl_check_io.c +++ b/erts/emulator/sys/common/erl_check_io.c @@ -366,7 +366,7 @@ abort_task(Eterm id, ErtsPortTaskHandle *pthp, EventStateType type) || !erts_port_task_is_scheduled(pthp)); } else if (erts_port_task_is_scheduled(pthp)) { - erts_port_task_abort(id, pthp); + erts_port_task_abort(pthp); ASSERT(erts_is_port_alive(id)); } } @@ -1088,8 +1088,7 @@ iready(Eterm id, ErtsDrvEventState *state) if (erts_port_task_schedule(id, &state->driver.select->intask, ERTS_PORT_TASK_INPUT, - (ErlDrvEvent) state->fd, - NULL) != 0) { + (ErlDrvEvent) state->fd) != 0) { stale_drv_select(id, state, ERL_DRV_READ); } } @@ -1100,8 +1099,7 @@ oready(Eterm id, ErtsDrvEventState *state) if (erts_port_task_schedule(id, &state->driver.select->outtask, ERTS_PORT_TASK_OUTPUT, - (ErlDrvEvent) state->fd, - NULL) != 0) { + (ErlDrvEvent) state->fd) != 0) { stale_drv_select(id, state, ERL_DRV_WRITE); } } |