Hello.
Some questions on the OZ concurrent input and output functions for
integrating C functions into OZ:
OZ_registerWriteHandler registers a function that will be called by the
oz-scheduler when a given file descriptor becomes writable.
1) Does calling OZ_registerWriteHandler cause the thread in which it was
called to suspend, and then resume when the given file descriptor
becomes writable and the registered function is called?
If so, great, and 1a) and 1b below are irrelevant. If not ...
1a) When the file descriptor becomes writable, is the registered
function called in a separate OZ thread (I'm assuming it would have to be)?
1b) Also, if the thread in which OZ_registerWriteHandler is called is
subsequently suspended (before the given file descriptor becomes
writeable), is the registered function still called when the descriptor
becomes writable, and how could this function resume the thread from
which it was registered?
2) When the file descriptor becomes writable, and the registered
function is called, is this function automatically unregistered from the
descriptor, or must it be explicitly unregistered by calling
"OZ_unregisterWrite"?
3) Is the return value of the registered function of type "OZ_Return"?
If not, what are the valid return values of this function?
Thanks for any help :)
-- Harmon
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs@mozart-oz.org.