I also tested your simple patch with the modified epicsMessageQueueTest.cpp and it succeeded for me as well.
I then tested with the test program I attached previously. I tested with 50,000 loops, 0.01 second delay, which takes 500 seconds. This also succeeds with Ben's patch, while it had a 3-5% failure rate with the 7.0.3.1 release.
I also tested your simple patch with the modified epicsMessageQue ueTest. cpp and it succeeded for me as well.
I then tested with the test program I attached previously. I tested with 50,000 loops, 0.01 second delay, which takes 500 seconds. This also succeeds with Ben's patch, while it had a 3-5% failure rate with the 7.0.3.1 release.
Loops=50000, numSent=50000, numReceived=50000