#define _POSIX_C_SOURCE 199309L
#endif
/* mt003.301 moved env files to use the __USE_UNIX98 flag in sys includes */
#define _POSIX_C_SOURCE 199309L
#endif
/* mt003.301 moved env files to use the __USE_UNIX98 flag in sys includes */
/* mt003.301 Additions - Task deregistration */
#include "ss_err.h" /* error */
#include "cm_mem.h" /* common memory manager */
/* mt003.301 Additions - Task deregistration */
#include "ss_err.h" /* error */
#include "cm_mem.h" /* common memory manager */
if(smWrReadWlsConfigParams() != ROK)
{
fprintf(stderr, "Failed to read WLS params from file wr_cfg.txt");
if(smWrReadWlsConfigParams() != ROK)
{
fprintf(stderr, "Failed to read WLS params from file wr_cfg.txt");
printf("\n SInit failed, SSI could not start \n");
/* pthread_exit(NULLP);*/ /* Commented to Come out of Main thread*/
printf("\n SInit failed, SSI could not start \n");
/* pthread_exit(NULLP);*/ /* Commented to Come out of Main thread*/
if(fileBasedMemCfg == TRUE && memConfigured == FALSE)
{
printf("\n File Based Memory configuration failed \n");
if(fileBasedMemCfg == TRUE && memConfigured == FALSE)
{
printf("\n File Based Memory configuration failed \n");
/* initialize the started semaphore */
if (sem_init(&osCp.dep.ssStarted, 0, 0) != 0)
{
/* initialize the started semaphore */
if (sem_init(&osCp.dep.ssStarted, 0, 0) != 0)
{
if(sigaction(SIGILL, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGILL\n");
if(sigaction(SIGILL, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGILL\n");
}
if(sigaction(SIGSEGV, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGSEGV\n");
}
if(sigaction(SIGSEGV, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGSEGV\n");
}
if(sigaction(SIGABRT, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGABRT\n");
}
if(sigaction(SIGABRT, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGABRT\n");
}
if(sigaction(SIGTERM, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGTERM\n");
}
if(sigaction(SIGTERM, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGTERM\n");
}
if(sigaction(SIGHUP, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGHUP\n");
}
if(sigaction(SIGHUP, &sa, NULL) != 0)
{
printf("Failed to process sigaction for the SIGHUP\n");
// printf ("recoverd bktCb->listValidBktSet.count %d bktIdx %d\n",bktCb->listValidBktSet.count ,bktIdx);
}
SUnlock(&(bktCb->bucketLock));
// printf ("recoverd bktCb->listValidBktSet.count %d bktIdx %d\n",bktCb->listValidBktSet.count ,bktIdx);
}
SUnlock(&(bktCb->bucketLock));
printf("\n ************* \n WLS memory: %lx, %d\n ****** \n", (PTR)osCp.wls.allocAddr, reqdMemSz);
#endif
SPartitionWlsMemory();
printf("\n ************* \n WLS memory: %lx, %d\n ****** \n", (PTR)osCp.wls.allocAddr, reqdMemSz);
#endif
SPartitionWlsMemory();
printf("\n ************* \n Static memory: %lx, %d\n ****** \n", (PTR)startAddr, reqdMemSz);
#endif
SPartitionStaticMemory(startAddr);
printf("\n ************* \n Static memory: %lx, %d\n ****** \n", (PTR)startAddr, reqdMemSz);
#endif
SPartitionStaticMemory(startAddr);
}
dynRegCb->bktTbl[k].size = mtGlobMemoCfg.bkt[k].blkSize;
dynRegCb->bktTbl[k].blkSetRelThreshold = mtDynMemoCfg.region[i].bkt[k].blkSetRelThreshold;
}
dynRegCb->bktTbl[k].size = mtGlobMemoCfg.bkt[k].blkSize;
dynRegCb->bktTbl[k].blkSetRelThreshold = mtDynMemoCfg.region[i].bkt[k].blkSetRelThreshold;
if (pthread_mutex_init(&(regMemLeakInfo.memLock[reg]), NULL) != 0)
{
printf("\n mutex init failed\n");
if (pthread_mutex_init(&(regMemLeakInfo.memLock[reg]), NULL) != 0)
{
printf("\n mutex init failed\n");
if ((tcgetattr(fd, &tio)) != 0)
{
printf("Error: disable canonical input processing\n");
if ((tcgetattr(fd, &tio)) != 0)
{
printf("Error: disable canonical input processing\n");
if ((tcsetattr(fd, TCSANOW, &tio)) != 0)
{
printf("Error: while tcsetattr() processing\n");
if ((tcsetattr(fd, TCSANOW, &tio)) != 0)
{
printf("Error: while tcsetattr() processing\n");
if (fcntl(fd, F_SETFL, flags) == -1)
{
printf("Error: while fcntl processing\n");
if (fcntl(fd, F_SETFL, flags) == -1)
{
printf("Error: while fcntl processing\n");
ProcId procId = SS_WD_WDPROC;
if (SAddProcIdLst(1, &procId) != ROK)
{
ProcId procId = SS_WD_WDPROC;
if (SAddProcIdLst(1, &procId) != ROK)
{
/*mt013.301 : Changes as per coding standards*/
if (msOptInd >= (S16) argc || argv[msOptInd][0] == '\0')
{
/*mt013.301 : Changes as per coding standards*/
if (msOptInd >= (S16) argc || argv[msOptInd][0] == '\0')
{
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT001, ret, "SGetMsg() failed");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT001, ret, "SGetMsg() failed");
#endif
MTLOGERROR(ERRCLS_DEBUG, EMT002, ret,
"Could not write to demand queue");
#endif
MTLOGERROR(ERRCLS_DEBUG, EMT002, ret,
"Could not write to demand queue");
#endif
- if ((pthread_create(&sTsk->dep.tId, &attr, mtTskHdlrT2kL2, (Ptr)sTsk)) != 0)
+ ret = pthread_create(&sTsk->dep.tId, &attr, mtTskHdlr, (Ptr)sTsk);
+ if (ret != 0)
pthread_attr_destroy(&attr);
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT004, ERRZERO, "Could not create thread");
#endif
pthread_attr_destroy(&attr);
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT004, ERRZERO, "Could not create thread");
#endif
- if ((pthread_create(&sTsk->dep.tId, &attr, mtTskHdlr, (Ptr)sTsk)) != 0)
+ ret = pthread_create(&sTsk->dep.tId, &attr, mtTskHdlr, (Ptr)sTsk);
+ if (ret != 0)
MTLOGERROR(ERRCLS_DEBUG, EMT004, ERRZERO, "Could not create thread");
#endif
MTLOGERROR(ERRCLS_DEBUG, EMT004, ERRZERO, "Could not create thread");
#endif
if (((retVal = pthread_create(tid, attr, pthreadCreateHdlr, threadArg))) != 0)
{
if (((retVal = pthread_create(tid, attr, pthreadCreateHdlr, threadArg))) != 0)
{
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT037, ERRZERO, "Could not get thread affinity\n");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT037, ERRZERO, "Could not get thread affinity\n");
#endif
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT037, ERRZERO, "Could not get thread affinity\n");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT037, ERRZERO, "Could not get thread affinity\n");
#endif
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT038, ERRZERO, "Could not set thread affinity\n");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT038, ERRZERO, "Could not set thread affinity\n");
#endif
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
if (tskInd == SS_MAX_STSKS)
{
MTLOGERROR(ERRCLS_DEBUG, EMT036, ERRZERO, "Invalid system task Id\n");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT038, ERRZERO, "Could not set thread affinity\n");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT038, ERRZERO, "Could not set thread affinity\n");
#endif
MTLOGERROR(ERRCLS_DEBUG, EMT005, ERRZERO, "Could not get a message");
#endif
MTLOGERROR(ERRCLS_DEBUG, EMT005, ERRZERO, "Could not get a message");
#endif
- RETVALUE(select(0,0,0,0,&tw) == 0 ? ROK : RFAILED);
+ return (select(0,0,0,0,&tw) == 0 ? ROK : RFAILED);
if (ret != ROK)
{
MTLOGERROR(ERRCLS_DEBUG, EMTXXX, ERRZERO, "Could not lock system task table");
if (ret != ROK)
{
MTLOGERROR(ERRCLS_DEBUG, EMTXXX, ERRZERO, "Could not lock system task table");
{
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMTXXX, ERRZERO, "Could not Unlock system task table");
{
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMTXXX, ERRZERO, "Could not Unlock system task table");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMTXXX, ERRZERO, "Could not Unlock system task table");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMTXXX, ERRZERO, "Could not Unlock system task table");
#endif
if (buf == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT022, ERRZERO, "Null pointer");
if (buf == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT022, ERRZERO, "Null pointer");
}
#endif
#ifndef XEON_SPECIFIC_CHANGES
#ifdef TENB_T2K3K_SPECIFIC_CHANGES
ssMemlog(buf, strlen(buf));
}
#endif
#ifndef XEON_SPECIFIC_CHANGES
#ifdef TENB_T2K3K_SPECIFIC_CHANGES
ssMemlog(buf, strlen(buf));
if (dt == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT023, ERRZERO, "Null pointer");
if (dt == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT023, ERRZERO, "Null pointer");
if (sysTime == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT024, ERRZERO, "Null pointer");
if (sysTime == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT024, ERRZERO, "Null pointer");
if (sec == NULLP || usec == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT025, ERRZERO, "Null pointer");
if (sec == NULLP || usec == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT025, ERRZERO, "Null pointer");
}
/* mt022.201 - Modification to fix compile warning */
if (refTime > (U32)(ptime.tv_sec))
{
MTLOGERROR(ERRCLS_INT_PAR, EMT026, ERRZERO, "Reference time exceeds present time");
}
/* mt022.201 - Modification to fix compile warning */
if (refTime > (U32)(ptime.tv_sec))
{
MTLOGERROR(ERRCLS_INT_PAR, EMT026, ERRZERO, "Reference time exceeds present time");
{
/* mt011.21: addition */
MTLOGERROR(ERRCLS_INT_PAR, EMT028, (ErrVal)0 , "Null pointer");
{
/* mt011.21: addition */
MTLOGERROR(ERRCLS_INT_PAR, EMT028, (ErrVal)0 , "Null pointer");
if (ent == NULLP || inst == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT029, ERRZERO, "Null pointer");
if (ent == NULLP || inst == NULLP)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT029, ERRZERO, "Null pointer");
if (ent >= ENTNC || inst >= INSTNC)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT030, ERRZERO, "Invalid entity/instance");
if (ent >= ENTNC || inst >= INSTNC)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT030, ERRZERO, "Invalid entity/instance");
if (id >= SS_MAX_DRVRTSKS || osCp.drvrTskTbl[id].used == FALSE)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT031, id, "Invalid instance");
if (id >= SS_MAX_DRVRTSKS || osCp.drvrTskTbl[id].used == FALSE)
{
MTLOGERROR(ERRCLS_INT_PAR, EMT031, id, "Invalid instance");
pool,
mtCMMRegCb[reg]->bktTbl[pool].numAlloc,
mtCMMRegCb[reg]->bktTbl[pool].numBlks);
pool,
mtCMMRegCb[reg]->bktTbl[pool].numAlloc,
mtCMMRegCb[reg]->bktTbl[pool].numBlks);
if (region > (SS_MAX_REGS-1) )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT032, ERRZERO, "Invalid Region");
if (region > (SS_MAX_REGS-1) )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT032, ERRZERO, "Invalid Region");
if (region >= mtMemoCfg.numRegions )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT033, ERRZERO, "Invalid Region");
if (region >= mtMemoCfg.numRegions )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT033, ERRZERO, "Invalid Region");
if (region >= mtMemoCfg.numRegions )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT034, ERRZERO, "Invalid Region");
if (region >= mtMemoCfg.numRegions )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT034, ERRZERO, "Invalid Region");
if (region >= mtMemoCfg.numRegions )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT035, ERRZERO, "Invalid Region");
if (region >= mtMemoCfg.numRegions )
{
MTLOGERROR(ERRCLS_INT_PAR, EMT035, ERRZERO, "Invalid Region");
* we cannot rely on this size. So it is better to stop here unless there
* exists any other mechanism(?) to know the offset to next block.
*/
* we cannot rely on this size. So it is better to stop here unless there
* exists any other mechanism(?) to know the offset to next block.
*/
sprintf(ts, "%s.%03ld", time_string, microseconds);
#endif
sprintf(ts, "%s.%03ld", time_string, microseconds);
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT040, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT040, ERRZERO,
"Could not give the Semaphore");
MTLOGERROR(ERRCLS_ADD_RES, EMT041, ERRZERO, "Too many system tasks");
#endif
MTLOGERROR(ERRCLS_ADD_RES, EMT041, ERRZERO, "Too many system tasks");
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT042, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT042, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT044, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT044, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT046, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT046, ERRZERO,
"Could not give the Semaphore");
{
sprintf(prntBuf, "\n\n ssdInitLockNew(): Initialization of read write lock failed,Error# retVal %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdInitLockNew(): Initialization of read write lock failed,Error# retVal %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf,"\n ssdInitLockNew(): mutexattr init failed,Error# %d \n",retVal);
SPrint(prntBuf);
{
sprintf(prntBuf,"\n ssdInitLockNew(): mutexattr init failed,Error# %d \n",retVal);
SPrint(prntBuf);
sprintf(prntBuf,"\n ssdInitLockNew(): mutexattr settype failed,Error# %d \n",retVal);
pthread_mutexattr_destroy(&attr);
SPrint(prntBuf);
sprintf(prntBuf,"\n ssdInitLockNew(): mutexattr settype failed,Error# %d \n",retVal);
pthread_mutexattr_destroy(&attr);
SPrint(prntBuf);
sprintf(prntBuf,"\n ssdInitLockNew(): mutex init failed,Error# %d \n",retVal);
pthread_mutexattr_destroy(&attr);
SPrint(prntBuf);
sprintf(prntBuf,"\n ssdInitLockNew(): mutex init failed,Error# %d \n",retVal);
pthread_mutexattr_destroy(&attr);
SPrint(prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the read lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the read lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the write lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the write lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the read lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the read lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the read lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the read lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the recursive mutex,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdLockNew(): Failed to aquire the recursive mutex,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdUnLockNew(): Failed to unlock the lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdUnLockNew(): Failed to unlock the lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdUnLockNew(): Failed to aquire the recursive mutex,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdUnLockNew(): Failed to aquire the recursive mutex,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdDestroyLockNew(): Failed to destroy the lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdDestroyLockNew(): Failed to destroy the lock,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdDestroyLockNew(): Failed to destroy the mutex,Error# %d\n", retVal);
SDisplay(0, prntBuf);
{
sprintf(prntBuf, "\n\n ssdDestroyLockNew(): Failed to destroy the mutex,Error# %d\n", retVal);
SDisplay(0, prntBuf);
}
/* If we found free mapping table entry, place the region and send pthread_cancel
* for all the thread Ids which are created before this
}
/* If we found free mapping table entry, place the region and send pthread_cancel
* for all the thread Ids which are created before this
}
/* If we found free mapping table entry, place the region and send pthread_cancel
* for all the thread Ids which are created before this
*/
osCp.threadMemoryRegionMap[((threadId >> SS_MEM_THREAD_ID_SHIFT) % SS_MAX_THREAD_REGION_MAP)] = SS_INVALID_THREAD_REG_MAP;
}
/* If we found free mapping table entry, place the region and send pthread_cancel
* for all the thread Ids which are created before this
*/
osCp.threadMemoryRegionMap[((threadId >> SS_MEM_THREAD_ID_SHIFT) % SS_MAX_THREAD_REGION_MAP)] = SS_INVALID_THREAD_REG_MAP;
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT042, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT042, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT044, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT044, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT046, ERRZERO,
"Could not give the Semaphore");
#if (ERRCLASS & ERRCLS_DEBUG)
MTLOGERROR(ERRCLS_DEBUG, EMT046, ERRZERO,
"Could not give the Semaphore");
MTLOGERROR(ERRCLS_DEBUG, EMT046, ERRZERO,
"Could not give the Semaphore");
#endif
MTLOGERROR(ERRCLS_DEBUG, EMT046, ERRZERO,
"Could not give the Semaphore");
#endif
/* mt020.201 - Addition for destroying thread attribute object attr */
pthread_attr_destroy(&attr);
sem_post(&osCp.dep.ssStarted);
/* mt020.201 - Addition for destroying thread attribute object attr */
pthread_attr_destroy(&attr);
sem_post(&osCp.dep.ssStarted);