| 95 | } |
| 96 | |
| 97 | void destroy(unsigned dstrFlags) |
| 98 | { |
| 99 | Firebird::MutexLockGuard guard(mtx, FB_FUNCTION); |
| 100 | |
| 101 | // Call destroy() only once even if handle is not removed from array |
| 102 | // by this call for any reason |
| 103 | for (int i = array.getCount() - 1; i >= 0; i--) |
| 104 | array[i]->destroy(dstrFlags); |
| 105 | |
| 106 | clear(); |
| 107 | } |
| 108 | |
| 109 | void assign(HandleArray& from) |
| 110 | { |