Pumpkin, Inc.

Pumpkin User Forums

Is it possible to check if MessageQ filled in 2.0

If you can't make Salvo do what you want it to do, post it here.

Is it possible to check if MessageQ filled in 2.0

Postby luben » Tue Apr 24, 2001 7:58 am

Hello,

From what I read in the manual of the still latest SALVO 2.0 (I know and I saw that in the new SALVO 2.2 this is solved very ellegant) I can't imagine how could be checked if the MessageQ is filled, except with signalling a message to the queue and checking what the error code will return the function OSSignalMsgQ(). Any other suggestions?

Regards
Luben

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria

Re: Is it possible to check if MessageQ filled in 2.0

Postby Salvo Tech Support » Thu Apr 26, 2001 5:50 am

Hi Luben.

You could read the size of the message queue directly, like this:

code:
OSDisableInts();
msgQCount = ecbP->event.mqcbP->count;
OSEnableInts();

and then compare msgQCount against the size of the message queue (which you know from creating the message queue).

Regards,

------------------
-----------------------
Salvo Technical Support
Please request all tech support through the Forums.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: Is it possible to check if MessageQ filled in 2.0

Postby luben » Thu Apr 26, 2001 7:32 am

I knew that there is some way to do this, but in the manual of SALVO 2.0 there is no one row about such useful feature.

Would be grate if you add this idea in the manual of SALVO 2.2 too.

And to be complete you should add such note for Message too - how to check if the message is filled (signalled).

For SALVO 2.2. there are many convenient functions for checking the status of the events "on the fly", but this is not true for SALVO 2.0. From other side if you add some notes to the old manual you can save a lot of time to all users of old SALVO 2.0.

Regards
Luben Hristov

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria


Return to Coding

Who is online

Users browsing this forum: No registered users and 3 guests

cron