o created tsStamp.h
o include tsStamp.h into tsDefs.h o use assert() instead of C++ exceptions on certain os
This commit is contained in:
@@ -310,8 +310,14 @@ epicsShareFunc void fdManager::installReg (fdReg ®)
|
||||
this->maxFD = tsMax(this->maxFD, reg.getFD()+1);
|
||||
this->regList.add (reg);
|
||||
reg.state = fdReg::pending;
|
||||
if (this->fdTbl.add (reg)!=0) {
|
||||
throw fdInterestSubscriptionAlreadyExits();
|
||||
|
||||
int status = this->fdTbl.add (reg);
|
||||
if (status!=0) {
|
||||
# ifdef noExceptionsFromCXX
|
||||
assert (0);
|
||||
# else
|
||||
throw fdInterestSubscriptionAlreadyExits ();
|
||||
# endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user