Skip to content

Issue #25: Improve ULog to better suit current requirements#42

Closed
hasslesstech wants to merge 3 commits intomainfrom
ulog-fix-1
Closed

Issue #25: Improve ULog to better suit current requirements#42
hasslesstech wants to merge 3 commits intomainfrom
ulog-fix-1

Conversation

@hasslesstech
Copy link
Copy Markdown
Contributor

This set of changes increases the size of the message queue to handle the initial spike of messages and significantly reduces the stack memory cost of calling ULOG_* macros by allocating a static message buffer which is then shared by all tasks. Single shared buffer eliminates the need to allocate large stack frames for individual tasks reducing not only the overall memory consumption, but also the probability of underestimating stack sizes.

Shared message buffer is protected by a mutex so that only one execution context can access it at any given time.

All changes are backwards-compatible and follow the existing API.

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.

1 participant