3 ms·
Threads are not required to call QSBR::update at the same time. They can call it anytime, but they do need to call it.
by preshing 11y ago
Threads are not required to call QSBR::update at the same time. They can call it anytime, but they do need to call it.
- thrownaway2424 11y agoOK. That's not really clear from the article. It makes the strange statement that the update function must be called "at a moment when each thread is quiescent – that is, not doing anything else." I don't believe there is any way in C++ to have a thread be doing more than one thing at a time, so if a C++ thread calls update it must by inspection be not doing anything else. Maybe you could restate this. I assumed since this had been stated this way it must really mean that all threads must have reached this state, and one thread must call update.
- preshing 11y agoOK, I tweaked it a little bit.