| 72 | |
| 73 | |
| 74 | char* PeerMessageFIFOMap::readFIFO(unsigned transactionID, unsigned timeout) |
| 75 | { |
| 76 | PeerMessageFIFO* FIFO = readNoBlock(transactionID); |
| 77 | if (!FIFO) { |
| 78 | LOG(NOTICE) << "attempt to read non-existent FIFO " << transactionID; |
| 79 | return NULL; |
| 80 | } |
| 81 | return FIFO->read(timeout); |
| 82 | } |
| 83 | |
| 84 | |
| 85 | void PeerMessageFIFOMap::writeFIFO(unsigned transactionID, const char* msg) |