elimated init flag and init routine

This commit is contained in:
Jeff Hill
1999-08-04 23:53:20 +00:00
parent 710ae0ee28
commit 976768a781

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.10 1998/12/01 23:32:15 jhill
* removed inline frm evt msk alloc
*
* Revision 1.9 1998/10/27 18:28:20 jhill
* fixed warnings
*
@@ -107,24 +110,6 @@ main ()
}
#endif
//
// casEventRegistry::initRegistry()
//
int casEventRegistry::initRegistry()
{
if (!this->hasBeenInitialized) {
int status;
status = this->resTable <casEventMaskEntry, stringId>::
init(1u<<8u);
if (status==0) {
this->hasBeenInitialized = 1u;
}
return status;
}
return 0;
}
//
// casEventRegistry::maskAllocator()
//
@@ -153,12 +138,6 @@ casEventMask casEventRegistry::registerEvent(const char *pName)
casEventMaskEntry *pEntry;
casEventMask mask;
if (!this->hasBeenInitialized) {
errMessage(S_cas_noMemory,
"casEventRegistry: not initialized?");
return mask;
}
this->mutex.osiLock();
pEntry = this->lookup (id);
if (pEntry) {
@@ -205,9 +184,6 @@ casEventMask::casEventMask (casEventRegistry &reg, const char *pName)
//
void casEventRegistry::show(unsigned level) const
{
if (!this->hasBeenInitialized) {
printf ("casEventRegistry: not initialized\n");
}
this->mutex.osiLock();
if (level>1u) {
printf ("casEventRegistry: bit allocator = %d\n",