| 275 | } |
| 276 | |
| 277 | G4int G4Event::GetNumberOfRemainingSubEvents() const |
| 278 | // Number of sub-events that are either still waiting to be processed by worker |
| 279 | // threads or sent to worker threads but not yet completed. |
| 280 | { |
| 281 | if(ifMasterEventForSubEventMode) |
| 282 | { |
| 283 | G4AutoLock lock(&SubEventMutex); |
| 284 | auto tot = (G4int)fSubEvtVector.size(); |
| 285 | for(auto& sem : fSubEvtStackMap) |
| 286 | { tot += (G4int)sem.second->size(); } |
| 287 | return tot; |
| 288 | } |
| 289 | return 0; |
| 290 | } |
no test coverage detected