made QUEUE_SIZE a global variable so users could control mallocing

This commit is contained in:
Ned Arnold
1995-08-16 20:53:26 +00:00
parent 8a0f66cb9b
commit 98809f8141

View File

@@ -1,3 +1,10 @@
/*
* 07-27-95 nda made QUEUE_SIZE a global variable so it could
* be changed at boot time for LOTS OF WAIT records
*
*
*/
#include <vxWorks.h>
#include <taskLib.h>
#include <string.h>
@@ -18,7 +25,8 @@
extern int interruptAccept;
#define QUEUE_SIZE 256
int recWaitCaQsize = 256;
LOCAL int taskid=0;
LOCAL RING_ID ringQ;;
LOCAL FAST_LOCK lock;
@@ -50,7 +58,7 @@ LOCAL void eventCallback(struct event_handler_args eha)
LOCAL void recWaitCaStart(void)
{
FASTLOCKINIT(&lock);
if((ringQ = rngCreate(sizeof(void *) * QUEUE_SIZE)) == NULL) {
if((ringQ = rngCreate(sizeof(void *) * recWaitCaQsize)) == NULL) {
errMessage(0,"recWaitCaStart failed");
exit(1);
}