Hi,
I just checked and the pool is empty.
After I tried to check the size and maxSize of
the pool before and after get as below:
maxSizeBeforeGet=call SendPool.maxSize();
sizeBeforeGet=call SendPool.size();
newmsg = call SendPool.get();
maxSizeAfterGet=call SendPool.maxSize();
sizeAfterGet=call
On Dec 5, 2008, at 1:58 AM, behnaz.bostanip...@epfl.ch wrote:
I realized that the value of newmsg in sendDataPkt() is most of
the time NULL.
Should I initialize it or am I doing sth wrong?
here is my wiring:
Pool returns NULL if it is empty. Can you check that it's not empty?
This
Hi,
While using interface Pool as below:
module MyP
{
.
.
.
interface Queuemessage_t* as SendQueue;
interface Poolmessage_t as SendPool;
.
.
}
.
.
.
task void sendDataPkt()
{
CADataMsg_t* carm;
message_t* newmsg = call