Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8938

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

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed
    • High
    • Resolution: Fixed
    • 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.

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: