summaryrefslogtreecommitdiffstats
path: root/include/framework/scheduling/Version.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/scheduling/Version.h')
-rw-r--r--include/framework/scheduling/Version.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/framework/scheduling/Version.h b/include/framework/scheduling/Version.h
index 4cd73ba..e2acc8f 100644
--- a/include/framework/scheduling/Version.h
+++ b/include/framework/scheduling/Version.h
@@ -82,7 +82,12 @@ public:
bool advance_buffer_head(size_t new_head) {
m_buffer_head = new_head;
- return m_buffer->advance_head(new_head);
+
+ while (!m_buffer->advance_head(new_head)) {
+ usleep(1);
+ }
+
+ return true;
}
void update_shard_version(size_t version) {