Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development/cyclicbuffer #1726

Merged
merged 65 commits into from
Aug 15, 2024
Merged

Development/cyclicbuffer #1726

merged 65 commits into from
Aug 15, 2024

Conversation

msieben
Copy link
Contributor

@msieben msieben commented Aug 15, 2024

No description provided.

… (the true) creation of the underlying buffer.

Initialization of an already intialized mutex or condition variable may result in undefined behavior. In the context of multiple users one 'creates' and others 'open'. This allows differentiation similar to the contructor taking DataElementFile as argument.
…ition variables are properly initialized before first use.
The typical use case is inter-process, but it allows for multiple threads within a process as gettid() is unique over all processes.
Different workers may be executed from the same underlying pthread.
…0c1e9c3cfa' from 'development/cyclicbuffer-deadlock-on-length'.
…14546c50' from 'development/cyclicbuffer-deadlock-on-length'.
Although explicit specification may be preferred, implicit is apparently the accepted use case.
While (looped) waiting on condition variable in 'Sync()' the time out triggers an 'abort()'.
msieben added 21 commits April 2, 2024 22:10
- Unresponsive child processes are 'killed' after a set timeout.

- Disable ASSERT triggers in 'test_cyclicbuffer'
It is unintuitive that the anmount of data is always 1 less than the (maximum) size.
The condition prevents checking an invalid state after construction. Moreover, the invalid state condition is part of the return value, and, identical ASSERTs are used throughout the code where the invalid pointer may be used.
Kept certain 'local' files intact with merge strategy
…23'.

- Start using the unresponsive detection.

- Copy and use the boolean result of the guarded code.
- Added or modified comments.

- Only validate reader data if overwrite is disabled.
…testing the effect of 'Reserved' and 'Write'
Make more explicit the effect of 'write', 'reserved' and 'overwrite' with modified data set
@msieben msieben marked this pull request as ready for review August 15, 2024 08:28
@pwielders pwielders removed their request for review August 15, 2024 08:43
@msieben msieben merged commit 7e4fdbd into master Aug 15, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants