Hi,
This is how the MessageQ is created without specifying MessageQ_Params:
d_MqHandle = MessageQ_create(d_AppInfo.lMsgqName, NULL);
Questions:
1. what is the synchronizer in this case?
2. MessageQ_get() would return -1 sometimes along with NULL pointer to MessageQ_Msg* d_Msgq, subsequent MessageQ_get() will not get any more msg. What is causing this problem?
3. I tried using MessageQ_count and sleep 200 us before calling MessageQ_get(), but worried about taking too much CPU time using this polling mechanism, is there any better solution to this problem?
Thanks,
Zhao