Uploaded image for project: 'rcX - Operating System'
  1. rcX - Operating System
  2. RCX-716

Timer task may stall if timer callback routine invokes blocking kernel service

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V2.1.1.0, V2.1.2.0, V2.1.3.0, V2.1.4.0, V2.1.5.0, V2.1.6.0, V2.1.7.0, V2.1.8.0, V2.1.9.0
    • Fix Version/s: V2.1.10.0
    • Component/s: Kernel
    • Labels:
      None
    • Account:
      SDO rcX (SDORCX)

      Description

      To protect the global ressources of the timer module, the scheduler is locked while processing the registered timer callbacks. Functions which have the potential to block the current task (e.g. rX_SigWaitForSignal, rX_QueWaitForPacket) must not be called inside a timer callback routine as context switching is not allowed while scheduler is locked. This behaviour is not covered in the current documentation!

      Suggestions:

      • Change documentation and stay with the current implementation
      • Introduce mutex to protect the global timer ressources and keep the current documentation

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  stephans stephans
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: