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

Remove critical section hooks to enhance MISRA conformance #4

Closed
pavel-kirienko opened this issue May 12, 2021 · 2 comments · Fixed by #7 or #10
Closed

Remove critical section hooks to enhance MISRA conformance #4

pavel-kirienko opened this issue May 12, 2021 · 2 comments · Fixed by #7 or #10
Labels
enhancement New feature or request
Milestone

Comments

@pavel-kirienko
Copy link
Owner

Remove critical section enter/leave hooks:

o1heap/o1heap/o1heap.h

Lines 98 to 99 in bd93277

const O1HeapHook critical_section_enter,
const O1HeapHook critical_section_leave);

Equivalent behaviors can be implemented by wrapping library calls in custom user code instead.

@pavel-kirienko pavel-kirienko added the enhancement New feature or request label May 12, 2021
@pavel-kirienko pavel-kirienko added this to the v2.0 milestone May 12, 2021
pavel-kirienko added a commit that referenced this issue Oct 9, 2021
* Actualize the tooling
* Add spelling dictionary
* Remove critical section hooks; fix #4
* Clean up redundant declarations
* Add support for O1HEAP_CONFIG_HEADER, fix #5
@jrahlf
Copy link

jrahlf commented Oct 20, 2021

The README should be changed accordingly, currently it says

In the case of concurrent environments, also pass pointers to the synchronization locking/unlocking functions -- they will be invoked by the library to facilitate atomic transactions. Alternatively, some applications (where possible) might benefit from using a separate heap per thread to avoid the synchronization overhead and reduce contention.

@pavel-kirienko
Copy link
Owner Author

@jrahlf thanks! Fixed in #10

pavel-kirienko referenced this issue Oct 21, 2021
* Update README as suggested in https://github.com/pavel-kirienko/o1heap/issues/4\#issuecomment-948071875

* Update CI configuration

* Enable sonarcloud on push, too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants