Menu

#78 VOS: When the schedule policy is set to VOS_THREAD_POLICY_OTHER and the priority to '0' in Linux, creating thread is failed.

1.3.0.0
closed
1394 (1)
2015-03-27
2015-03-16
No

In vos_threadCreate(), the third argument 'policy' is set to VOS_THREAD_POLICY_OTHER and
the fourth augument 'priority' is set to '0'.
This causes the following.
The value of VOS_THREAD_POLICY_OTHER is '1', but the value of SCHED_OTHER is '0'.
In Linux, schedule policy '1' means SCHED_FIFO.
Therefore, the structure VOS_THREAD_POLICY_T is wrong.

(See below.)
sched.h
#define SCHED_OTHER 0
#define SCHED_FIFO 1

Discussion

  • Armin-Hagen Weiss

    • labels: --> 1394
    • status: open --> closed
    • assigned_to: Armin-Hagen Weiss
    • Milestone: 1.2.0.0 --> 1.3.0.0
     
  • Armin-Hagen Weiss

    Definitions changed acc. Posix/Linux/PTHREAD. Thanks for thr hint.

     

Log in to post a comment.

MongoDB Logo MongoDB