Caller context flags [PSARC/2007/632 FastTrack timeout 11/09/2007]
James Carlson
james.d.carlson at sun.com
Mon Nov 5 04:20:46 PST 2007
Rich.Brown at Sun.COM writes:
> The first two new flags to be defined:
> #define CC_WOULDBLOCK 0x1 /* set upon return by monitor */
> #define CC_DONTBLOCK 0x2 /* set by caller */
>
> The caller sets CC_DONTBLOCK in cc_flags to direct the monitor not to
> perform an operation that might block. In the case where a monitor would
> perform a blocking operation and CC_DONTBLOCK is set, the monitor
> sets CC_WOULDBLOCK in the cc_flags and returns EAGAIN to the caller.
I'm not sure I understand how this is intended to be used.
What exactly is the caller supposed to do when he gets CC_WOULDBLOCK?
How long should he wait before trying again? Or is it always possible
to detect this case and defer the operation until at can be run
without CC_DONTBLOCK?
--
James Carlson, Solaris Networking <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
More information about the opensolaris-arc
mailing list