| 1159 | } |
| 1160 | |
| 1161 | void init(typename Y::NextInterface* nxt) |
| 1162 | { |
| 1163 | signalInit(); |
| 1164 | |
| 1165 | if (ref) |
| 1166 | { |
| 1167 | MutexLockGuard guard(ref->enterMutex, FB_FUNCTION); |
| 1168 | ++ref->enterCount; |
| 1169 | nextRef = nxt; |
| 1170 | } |
| 1171 | else |
| 1172 | { |
| 1173 | ++dispCounter; |
| 1174 | nextRef = nxt; |
| 1175 | } |
| 1176 | |
| 1177 | if (shutdownStarted) |
| 1178 | { |
| 1179 | fini(); |
| 1180 | Arg::Gds(isc_att_shutdown).raise(); |
| 1181 | } |
| 1182 | } |
| 1183 | |
| 1184 | void fini() |
| 1185 | { |
no test coverage detected