Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit b0f6be0

Browse files
authored
All interthread events on queue before transfer (#691)
See issue described in neuronsimulator/nrn#1531
1 parent ff93a93 commit b0f6be0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coreneuron/io/core2nrn_data_return.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ void core2nrn_tqueue(NrnThread& nt) {
511511

512512
// The items on the queue
513513
NetCvodeThreadData& ntd = net_cvode_instance->p[nt.id];
514+
// make sure all buffered interthread events are on the queue
515+
ntd.enqueue(net_cvode_instance, &nt);
516+
514517
TQueue<QTYPE>* tqe = ntd.tqe_;
515518
TQItem* q;
516519
SelfEventWeightMap sewm;

0 commit comments

Comments
 (0)