Alex Rousskov wrote:
> I omitted calls to IOBufLockRead (before
> ncom_write) and IOBufUnlockRead (in the callback, as appropriate).
Not really needed. The I/O operation will keep a reference until the
callback has been called.
If the callback wishes to retain a reference to the IOBUF after
returning then it must "lock" it.
This will all get clearer when I get to writing the IOBUF chapter, which
will outline how IOBUF's are supposed to be used. (semantic note: the
buffers have a reference count, not lock count)
/Henrik
Received on Tue Feb 20 2001 - 17:02:11 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:33 MST