summaryrefslogtreecommitdiffstats
path: root/include/framework/scheduling/Version.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-02-17 13:17:47 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2025-02-17 13:17:47 -0500
commitf2ee7bef98a10ee52fb4e9e847df0dd173f78d73 (patch)
tree9a7fbb0dcd4efc97eab6f61f03a25d93703b9438 /include/framework/scheduling/Version.h
parentf0ac69f9d5179abd385644a520be670a8ca5e942 (diff)
downloaddynamic-extension-f2ee7bef98a10ee52fb4e9e847df0dd173f78d73.tar.gz
Fixed a few benchmark bugs
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) {