diff options
author | Sverker Eriksson <[email protected]> | 2017-02-20 20:20:29 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-02-20 20:20:29 +0100 |
commit | af7cf70ca22a34add7836963d086ca0764f4fbae (patch) | |
tree | 2c9dbcbb87fbb71142ac2356c1661e79cbb706ec /erts/emulator/beam/io.c | |
parent | d8d8301a252579a000b24bab87d26549da0e813a (diff) | |
download | otp-af7cf70ca22a34add7836963d086ca0764f4fbae.tar.gz otp-af7cf70ca22a34add7836963d086ca0764f4fbae.tar.bz2 otp-af7cf70ca22a34add7836963d086ca0764f4fbae.zip |
Fix ErlNifMonitor handling
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r-- | erts/emulator/beam/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index 9b525cc100..84dc00f641 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -7615,7 +7615,7 @@ void erts_ref_to_driver_monitor(Eterm ref, ErlDrvMonitor *mon) ERTS_REF_THING_SIZE*sizeof(Uint)); } -static Eterm driver_monitor_to_ref(Eterm *hp, const ErlDrvMonitor *mon) +Eterm erts_driver_monitor_to_ref(Eterm *hp, const ErlDrvMonitor *mon) { Eterm ref; ERTS_CT_ASSERT(ERTS_REF_THING_SIZE*sizeof(Uint) <= sizeof(ErlDrvMonitor)); @@ -7685,7 +7685,7 @@ static int do_driver_demonitor_process(Port *prt, const ErlDrvMonitor *monitor) ErtsMonitor *mon; Eterm to; - ref = driver_monitor_to_ref(heap, monitor); + ref = erts_driver_monitor_to_ref(heap, monitor); mon = erts_lookup_monitor(ERTS_P_MONITORS(prt), ref); if (mon == NULL) { @@ -7742,7 +7742,7 @@ static ErlDrvTermData do_driver_get_monitored_process(Port *prt,const ErlDrvMoni Eterm to; Eterm heap[ERTS_REF_THING_SIZE]; - ref = driver_monitor_to_ref(heap, monitor); + ref = erts_driver_monitor_to_ref(heap, monitor); mon = erts_lookup_monitor(ERTS_P_MONITORS(prt), ref); if (mon == NULL) { |