MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / probe_processes

Method probe_processes

src/jrd/event.cpp:1138–1163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136
1137
1138void EventManager::probe_processes()
1139{
1140/**************************************
1141 *
1142 * p r o b e _ p r o c e s s e s
1143 *
1144 **************************************
1145 *
1146 * Functional description
1147 * Probe a process to see if it still exists.
1148 * If it doesn't, get rid of it.
1149 *
1150 **************************************/
1151 srq* event_srq;
1152 SRQ_LOOP(m_sharedMemory->getHeader()->evh_processes, event_srq)
1153 {
1154 prb* const process = (prb*) ((UCHAR*) event_srq - offsetof(prb, prb_processes));
1155 const SLONG process_offset = SRQ_REL_PTR(process);
1156 if (process_offset != m_processOffset &&
1157 !ISC_check_process_existence(process->prb_process_id))
1158 {
1159 event_srq = (srq *) SRQ_ABS_PTR(event_srq->srq_backward);
1160 delete_process(process_offset);
1161 }
1162 }
1163}
1164
1165
1166void EventManager::punt(const TEXT* string)

Callers

nothing calls this directly

Calls 2

getHeaderMethod · 0.45

Tested by

no test coverage detected