Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-27581

Check to see if ThreadDestroyListLock can be removed

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 8.0.0
    • JLib
    • None

    Description

      There is some (very old) code in jlib maintaining a list of threads being destroyed (ThreadDestroyList).

      It claims to be avoiding a race condition between join and thread destruction, but it is not clear what the race condition is.  I suspect it is something to do with synchronization between the alive flag and the stopped semaphore, but may not even exist any more.

      Worth revisiting to see if it can be removed.

       

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            ghalliday Gavin Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: