Branch: Tag:

2004-04-04

2004-04-04 23:56:57 by Martin Stjernholm <mast@lysator.liu.se>

Improved doc.

Rev: lib/modules/Stdio.pmod/module.pmod:1.194

1187:   <dd class='body--doc'><p>Callbacks are also set by <code>set_nonblocking()</code>.</p>   </dd>   <dt class='head--doc'>Note</dt> - <dd class='body--doc'><p>The callbacks are disabled until they have accessed the stream, -  i.e. the <code>write_cb</code> callback is disabled until something has -  been written with <code>write</code>, and the <code>write_oob_cb</code> callback is -  disabled until something has been written with <code>write_oob</code>. -  Since the read callbacks get the data right away, this effect is -  not noticeable for them.</p> + <dd class='body--doc'><p>After a callback has been called, it's disabled until it has +  accessed the stream accordingly, i.e. the <code>write_cb</code> callback +  is disabled after it's been called until something has been +  written with <code>write</code>, and the <code>write_oob_cb</code> callback is +  likewise disabled until something has been written with +  <code>write_oob</code>. Since the data already has been read when the read +  callbacks are called, this effect is not noticeable for them.</p>   </dd>   <dt class='head--doc'>Note</dt>   <dd class='body--doc'><p>Installing callbacks means that you will start doing I/O on the