[Feature Request] Timers and pended functions should be separated
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 15/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- c
- Domaine
- operating-systems
Piste de recherche
The payload names no files or functions, only the software timer module, the timer service (daemon) task and the pended-function mechanism. Start by finding how the kernel's timer service task dispatches pended functions, then decide whether they can get their own task. Done would need a design agreed with maintainers first, since the author's implementation was never posted as a pull request.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Is your feature request related to a problem? Please describe.
Currently, the software timers also include the functionality of "pended functions". This is useful if one wants to defer the execution of lengthy or less important functions to the daemon task, i.e. the timer service task. While the functionality of these "pended functions" is very useful, having it combined with the timer service task has a couple drawbacks:
- if one wants to use the pended functions, the timer module must be included as well. Decoupling of these two functionalitites, which are in fact two completely different things, would be great.
- if software timers and pended functions are used at the same time, this can lead to problems if one of the pended function takes longer than the time required until the next timer is ready. Assume the following scenario: a software timer is configured that should fire in 2 ms. Further, a pended function is installed, whose execution would take 3 ms. In that case, the timer would be delayed. It would make sense to have a task whose priority is just above the idle task, and then defer lengthy operations to this task using the pended functions. The timer task then would have a priority that is higher than this, such that it will not be interrupted by long operations.
Describe the solution you'd like
There should be two separate tasks for the pended functions and the timers such that one can use either one alone, or both.
I have implemented this already and will post a PR if this is considered useful.
Describe alternatives you've considered
Use pended functions from the timer module.
How many devices will this feature impact?
N/A
What are your project timelines?
N/A
Additional context
none
If you have the same (or similar) feature request, please upvote this issue with thumbs up 👍
and use the comments section to provide answers to the questions above.
- Langage dominant
- C
- Étoiles
- 4.6k
- Forks
- 1.6k
- Merge moyen
- 2 j 22 h
- PR mergées (30 j)
- 4
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de FreeRTOS/FreeRTOS-Kernel
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
FreeRTOS/FreeRTOS-Kernel#1542 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] Release asset FreeRTOS-KernelV11.3.2.zip has the files of main, not of the tag V11.3.2Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
FreeRTOS/FreeRTOS-Kernel#1520 ·
Les mainteneurs répondent en général sous 3 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
FreeRTOS/FreeRTOS-Kernel#1494 · 3 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
FreeRTOS/FreeRTOS-Kernel#1554 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] event_wait_timed can't return falsePeut-être pris @TedLyngmo l’a pris il y a 39 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 38/100
FreeRTOS/FreeRTOS-Kernel#1546 ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de FreeRTOS/FreeRTOS-Kernel
Issues similaires
-
RecompLauncher supportOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
shinyquagsire23/OpenJKDF2#540 ·
Les mainteneurs répondent en général sous 12 jours
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or signOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Life-Framework/Life-Framework#5939 ·
Les mainteneurs répondent en général sous 1 jour
-
autoconf failes to find libsodium even when present due to implicit function declarationPeut-être pris @coderjoe l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 13 jours
-
SessionInterfaceHandler is throwing a deprecation notice as a warning instead of a deprecationOuverteBug Status: Needs Triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement_package: a site operand of another JSON type raises TypeError, not a named refusalOuvertebug python
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
Jstar269/nakagawa-recomp#3521 ·
Les mainteneurs répondent en général sous 1 jour