| 213 | } |
| 214 | |
| 215 | std::pair<int, SignalAction> SignalsCatcherControlBlock::getAssociation(const uint8_t signalNumber) const |
| 216 | { |
| 217 | if (signalNumber >= SignalSet::Bitset{}.size()) |
| 218 | return {EINVAL, {}}; |
| 219 | |
| 220 | const auto association = findAssociation(getAssociationsBegin(), associationsEnd_, signalNumber); |
| 221 | if (association == associationsEnd_) // there is no association for this signal number? |
| 222 | return {{}, {}}; |
| 223 | |
| 224 | return {{}, association->second}; |
| 225 | } |
| 226 | |
| 227 | std::pair<int, SignalAction> SignalsCatcherControlBlock::setAssociation(const uint8_t signalNumber, |
| 228 | const SignalAction& signalAction) |
no test coverage detected