Pumpkin, Inc.

Pumpkin User Forums

Calculating the OSEVENTS

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

Calculating the OSEVENTS

Postby luben » Tue Jan 02, 2001 6:33 am

Hello,

When I define the number of events in salvocfg.h with OSEVENTS, this number should be equal to the sum of the numbers of semaphores (bin and count) events + Msg events(number of different messages) + MsgQ events(number of queues), correct?

And if I have message queues I should add
............#define OSEVENT n1
............#define OSMESSGAGE_QUEUES n2

so, OSEVENTS = n1 + n2
where n1 = number_of_semaphores (bin and count) + number_of_Msg

Of course I should enable messages, semaphores and message queues with

OSENABLE_SEMAPHORES
OSENABLE_BINARY_SEMAPHORES
OSENABLE_MESSAGES
OSENABLE_MESSAGE_QUEUES


and then set their number with
OSEVENTS n1+n2
OSMESSAGE_QUEUES n2

From what I understood from the manual it should be so. But I have to ensure that I don't wrong somewhere.

Regards
Luben


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

Re: Calculating the OSEVENTS

Postby Salvo Tech Support » Wed Jan 03, 2001 8:08 am

Hi Luben.

OSEVENTS is the total number of events (sems, binsems, msgs and msgqs). OSMESSAGE_QUEUES in the number of events that are message queues, i.e. OSMESSAGE_QUEUES <= OSEVENTS.

All of the events are enabled by default -- you don't need to explicitly enable them.

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


Return to Coding

Who is online

Users browsing this forum: No registered users and 2 guests

cron