Thread handle set too late in pthread_create() [FreeRTOS]

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • TIRTOS
    • TIRTOS-1436
    • 3.10.00
    • 3.60.00
    • Hide
      On FreeRTOS, when calling pthread_create(), the first argument is a pointer to the thread handle. Before the new thread starts running, it must store the new pthread handle in this location. However, the scheduler is started before the handle is stored. This causes the calling thread to be preempted (the thread which called pthread_create()), and the new thread starts running. If the new thread references the thread handle, it will be uninitialized.
      Show
      On FreeRTOS, when calling pthread_create(), the first argument is a pointer to the thread handle. Before the new thread starts running, it must store the new pthread handle in this location. However, the scheduler is started before the handle is stored. This causes the calling thread to be preempted (the thread which called pthread_create()), and the new thread starts running. If the new thread references the thread handle, it will be uninitialized.

      Thread handle set too late in pthread_create() [FreeRTOS]

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-1441 - Thread handle set too late in pthre...
                SYNCHRONIZED
                • Last Sync Date: