This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What is an equivalent "NULL" value for MessageQ_QueueId?

Hi

I'd like my task to check to see if the QueueId has been assigned before attempting to post to the queue. Is there a value of MessageQ_QueueId that is not assigned by

msgqStatus = MessageQ_open(localQueueName, &QueueId);

My goal is to have task A open the queue, and have task B do puts to the queue, but I'd like a method for task B to pend on QueueId if it has not been assigned.

I checked cdoc and the IPC users guide for this information. No luck.

Cheers
Eddie


  • Hi Eddie,

    MessageQ doesn't have an 'invalid queue id' value.  I can think of two ways to get around your problem:

    1) Let both tasks open the MessageQ.  MessageQ_open will return a failure code (with a negative value) if the queue isn't available yet.

    2) Let Task B pend on the 'msgqStatus' which would become non-negative only when task A successfully opens the MessageQ.

    For future reference, you should consult the Doxygen-formatted documentation contained within the IPC product to get information about run-time APIs.  The cdoc primarily presents information about RTSC-specific aspects of IPC modules (i.e. static module config, error/assert codes, etc) and the Users Guide provides a higher-level functional description.


    Regards,

    Shreyas

  • Hi

    Those are two good ideas. Thanks

    As per doxygen, are you talking about the index in

    C:\Program Files\Texas Instruments\ipc_1_20_00_23\docs\doxygen\html\index.html?

    Cheers

     

  • Hi

    Those are two good ideas. Thanks

    As per doxygen, are you talking about the index in

    C:\Program Files\Texas Instruments\ipc_1_20_00_23\docs\doxygen\html\index.html?

    Cheers

     

  • Yes, that's the one.

    Regards,

    Shreyas

  • Sorry to pester you more, but is there a way to search the doxygen document? It would take awhile navigating to find the info I want.

    Perhaps my web browser (IE) isn't configured for this?

    I'm not a doxygen expert (or even novice!), but I found a web link that said search had to be enabled when the doxygen doc was created....

    http://www.hep.phy.cam.ac.uk/doxygen/doxysearch_usage.html

    True?

    (I also have the same problem with cdoc documentation: no search method)

    Cheers

  • You can search cdoc and doxygen inside CCS4 (Eclipse).

    Mark