Page 1 of 1

Calculating the OSEVENTS

PostPosted: Tue Jan 02, 2001 6:33 am
by luben

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



Re: Calculating the OSEVENTS

PostPosted: Wed Jan 03, 2001 8:08 am
by Salvo Tech Support
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.