| 780 | } |
| 781 | |
| 782 | void PortsCleanup::unRegisterPort(rem_port* port) |
| 783 | { |
| 784 | MutexLockGuard guard(m_mutex, FB_FUNCTION); |
| 785 | |
| 786 | if (closing) |
| 787 | return; |
| 788 | |
| 789 | if (m_ports) |
| 790 | { |
| 791 | FB_SIZE_T i; |
| 792 | const bool found = m_ports->find(port, i); |
| 793 | //fb_assert(found); |
| 794 | if (found) |
| 795 | m_ports->remove(i); |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | void PortsCleanup::closePorts() |
| 800 | { |
no test coverage detected