added cvs log entries

This commit is contained in:
Jeff Hill
1996-09-16 18:22:09 +00:00
parent 2e80e8c2ee
commit 1aa384308d

View File

@@ -1,11 +1,25 @@
//
// $Id$
// Author: Jeff HIll (LANL)
//
// $Log$
//
#include <exServer.h>
#include <taskLib.h>
//
// main()
// so we can call this from the vxWorks shell
//
int excas (unsigned debugLevel=0u, unsigned delaySec=0)
extern "C" {
exServer *pExampleCAS;
//
// excas ()
// (vxWorks example server entry point)
//
int excas (unsigned debugLevel, unsigned delaySec)
{
osiTime begin(osiTime::getCurrent());
exServer *pCAS;
@@ -16,12 +30,13 @@ int excas (unsigned debugLevel=0u, unsigned delaySec=0)
}
pCAS->setDebugLevel(debugLevel);
pExampleCAS = pCAS;
if (delaySec==0u) {
//
// loop here forever
//
while (aitTrue) {
while (1) {
taskDelay(10);
}
}
@@ -37,7 +52,19 @@ int excas (unsigned debugLevel=0u, unsigned delaySec=0)
delay = osiTime::getCurrent() - begin;
}
}
pCAS->show(debugLevel);
pExampleCAS = NULL;
delete pCAS;
return (0);
return 0;
}
int excasShow(unsigned level)
{
if (pExampleCAS!=NULL) {
pExampleCAS->show(level);
}
return 0;
}
} // extern "C"