You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "kasjer (via GitHub)" <gi...@apache.org> on 2026/10/22 10:37:38 UTC

[PR] mynewt task utilities [mynewt-core]

kasjer opened a new pull request, #3815:
URL: https://github.com/apache/mynewt-core/pull/3815

   Almost every user of os_eventq_run() wraps it in the same endless
   loop.
   Now code has os_eventq_loop() that does exactly that and never returns,
   and os_eventq_task_handler() that runs it on the event queue passed
   as task argument, so it can be given directly to os_task_init().
   
   new packge util/static_task add new macros to create tasks with static stack that will be started at the end of sysinit.
   STATIC_TASK_DEFINE allows to create stack and it's stack with given function
   
   helper macro
   STATIC_EVENTQ_TASK_DEFINE allows to create tasks that only process event queue.
   lora example uses this pattern where helper task processes events. It was also change since stack was not created with correct alignment and could crash with float point numbers.
   
   Simple application showcases how static tasks are intended to be used
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] mynewt task utilities [mynewt-core]

Posted by "kasjer (via GitHub)" <gi...@apache.org>.
kasjer commented on PR #3815:
URL: https://github.com/apache/mynewt-core/pull/3815#issuecomment-6359615866

   > I'd squash "kernel/os: Add OS_EVENTQ_INITIALIZER()" and "util/static_task: Add statically defined tasks"
   
   I agree, now two commits are squashed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] mynewt task utilities [mynewt-core]

Posted by "kasjer (via GitHub)" <gi...@apache.org>.
kasjer merged PR #3815:
URL: https://github.com/apache/mynewt-core/pull/3815


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org