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 #1731

Merged
merged 67 commits into from
Aug 27, 2024
Merged

Development/cyclicbuffer #1731

merged 67 commits into from
Aug 27, 2024

Conversation

msieben
Copy link
Contributor

@msieben msieben commented Aug 26, 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 and others added 23 commits April 2, 2024 22:10
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
* Added buildinfo method for QA report

* Added public compilesettings

* Updated Controller.cpp from seb comments

* Updated CMakeLists.txt in core

* added priv compilesettings

* Added threadcount to buildinfo

* Added unused variable macro

* systemtype and universal build flags

* enum extensions

* spelling

* empty commit to test action

* shortened namespaces and whitespace

* extra line

---------

Co-authored-by: Pierre Wielders <pierre@wielders.net>
@msieben msieben marked this pull request as ready for review August 27, 2024 07:33
@MFransen69 MFransen69 merged commit 7ac5659 into master Aug 27, 2024
56 checks passed
@MFransen69 MFransen69 deleted the development/cyclicbuffer branch August 27, 2024 07:34
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.

3 participants