Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Files

os.h/os_core.c

Prototype

Code Block
void  OSSched (void)

Arguments

None

Returned Value

...

Notes/Warnings

None

Example Usage

Code Block
titleOSSched() example usage
          void TaskX (void *p_arg)
          {
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  OS??Post(...);         /* Posts with OS_OPT_POST_NO_SCHED option         */
                  /* Check "err" */
                  :
                  :
                  OS??Post(...);    
                  /* Check "err" */
                  :
                  :
                  OS??Post(...);
                  /* Check "err" */
                  :
                  :
                  OSSched();           /* Run the scheduler                              */
                  :
                  :
              }
          }