canque_test_outslot

Name

canque_test_outslot --  test and retrieve ready slot for given ends

Synopsis

int canque_test_outslot (struct canque_ends_t * qends, struct canque_edge_t ** qedgep, struct canque_slot_t ** slotp);

Arguments

qends

ends structure belonging to calling communication object

qedgep

place to store pointer to found edge

slotp

place to store pointer to received slot

Description

Function takes highest priority active incoming edge and retrieves oldest ready slot from it.

Return Value

Negative value informs, that there is no ready output slot for given ends. Positive value is equal to the command slot has been allocated by the input side.