FillPoolWithMsgItems

Fills memory pool with message items.

Synopsis

Boolean FillPoolWithMsgItems (MemPoolPtr memPool, Item replyPort)

Description

Allocates a message item for each entry in a memory pool. The items created by FillPoolWithMsgItems() will have their reply port field set to the value of replyPort.

The DataStreamer calls ForEachFreePoolMember() to allocate the items; ForEachFreePoolMember() then calls CreateMsgItem() to create the items that are allocated to the entries.

Arguments

memPool
Memory pool.
replyPort
Reply port selected for the items.

Return Value

Value
Error Condition
TRUE
None
FALSE
CreateMsgItem() failed

Associated Files

DataStreamLib.h

See Also

CreateMsgItem, ForEachFreePoolMember