Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2045

Race condition when QThread creates a QEventDispatcherGlib instance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • 4.5.3
    • 4.3.4
    • Core: Threads
    • None
    • 662f33a5b39f31579a2557a4d81469cfe30815c7

    Description

      There's a race condition when QThread creates a QEventDispatcherGlib instance, the following code can be found in the QEventDispatcherGlibPrivate() c'tor

      if (!g_thread_supported())
      g_thread_init(NULL);

      This is can cause g_thread_init() to be called twice when creating two threads at the same time and the main event loop created by QApplication is not a glib one (i.e. when using QtMotif). This causes g_thread_init() to abort.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes