SMC_GetObjFromEnd (FUN)ΒΆ
FUNCTION SMC_GetObjFromEnd : POINTER TO SMC_GEOINFO
Returns a pointer to the n-last object
(start counting from the end) of the queue (poq
).
For N=0
the last element in the list will be returned.
task-safety: may be called from both tasks; the result however may be invalid: In case of the producer task, the output may no longer be part of the queue, in case of the consumer task, the output may no longer be the last element.
- InOut:
Scope
Name
Type
Comment
Return
SMC_GetObjFromEnd
POINTER TO SMC_GEOINFO
Input
poq
POINTER TO SMC_OUTQUEUE
The out queue
N
UINT
Index of object, counting is started with
N=0
for the last element.