diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-17 13:17:47 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-17 13:17:47 -0500 |
| commit | f2ee7bef98a10ee52fb4e9e847df0dd173f78d73 (patch) | |
| tree | 9a7fbb0dcd4efc97eab6f61f03a25d93703b9438 /include/framework/scheduling/Version.h | |
| parent | f0ac69f9d5179abd385644a520be670a8ca5e942 (diff) | |
| download | dynamic-extension-f2ee7bef98a10ee52fb4e9e847df0dd173f78d73.tar.gz | |
Fixed a few benchmark bugs
Diffstat (limited to 'include/framework/scheduling/Version.h')
| -rw-r--r-- | include/framework/scheduling/Version.h | 7 |
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) { |