diff options
author | Sverker Eriksson <[email protected]> | 2016-10-25 15:58:24 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-10-25 15:58:24 +0200 |
commit | 95dd51d198c05ee8e93afd4984a0b306bc1fcdc3 (patch) | |
tree | 366f70588e8e081105f3945eeea2bb952d5337be /erts | |
parent | cc358d4dbbda46d60a90157fae101ffdf3295a0e (diff) | |
download | otp-95dd51d198c05ee8e93afd4984a0b306bc1fcdc3.tar.gz otp-95dd51d198c05ee8e93afd4984a0b306bc1fcdc3.tar.bz2 otp-95dd51d198c05ee8e93afd4984a0b306bc1fcdc3.zip |
erts: Correct docs for driver_select
Diffstat (limited to 'erts')
-rw-r--r-- | erts/doc/src/erl_driver.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/doc/src/erl_driver.xml b/erts/doc/src/erl_driver.xml index 836a58a676..5191742bc9 100644 --- a/erts/doc/src/erl_driver.xml +++ b/erts/doc/src/erl_driver.xml @@ -1916,9 +1916,9 @@ r = driver_async(myPort, &myKey, myData, myFunc); ]]></code> returned. Another thread can still be using the event object internally. To safely close an event object, call <c>driver_select</c> with <c>ERL_DRV_USE</c> and <c>on==0</c>, which - clears all events. Then call - <seealso marker="driver_entry#stop_select"> - <c>stop_select</c></seealso> when it is safe to close the event + clears all events and then either calls + <seealso marker="driver_entry#stop_select"><c>stop_select</c></seealso> + or schedules it to be called when it is safe to close the event object. <c>ERL_DRV_USE</c> is to be set together with the first event for an event object. It is harmless to set <c>ERL_DRV_USE</c> even if it already has been done. Clearing all events but keeping |