You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/02/16 08:28:02 UTC
[GitHub] [mynewt-nimble] andrzej-kaczmarek opened a new pull request #1173: babblesim: Use pthreads instead of setlongjmp for tasks
andrzej-kaczmarek opened a new pull request #1173:
URL: https://github.com/apache/mynewt-nimble/pull/1173
This changes tasks handling to native threads instead of setlongjmp()
which resolves issue with calling the setlongjmp() from nested signal
handlers but also simplifies code, makes debugging much easier and can
work nicely with e.g. Valgrind.
Each task is wrapped in a thread and all threads are synchronized on
a global mutex to make sure only one task executes at any time. If
context switch is requested (this is always done via os_sched() in
critical section), a flag is set to indicate pending context switch
which will be handled after exiting from critical setion and handling
all other pending interrupts. This mimics the way it's done on a real
hardware.
--
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: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [mynewt-nimble] andrzej-kaczmarek merged pull request #1173: babblesim: Use pthreads instead of setlongjmp for tasks
Posted by GitBox <gi...@apache.org>.
andrzej-kaczmarek merged pull request #1173:
URL: https://github.com/apache/mynewt-nimble/pull/1173
--
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: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [mynewt-nimble] andrzej-kaczmarek commented on pull request #1173: babblesim: Use pthreads instead of setlongjmp for tasks
Posted by GitBox <gi...@apache.org>.
andrzej-kaczmarek commented on pull request #1173:
URL: https://github.com/apache/mynewt-nimble/pull/1173#issuecomment-1041236573
@mkasenberg @jrotkiewicz
--
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: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org