Opened 16 years ago
Closed 15 years ago
#4733 closed defect (duplicate)
threads using QRegExp have to use QThread instead of pthread
Reported by: | Janne Grunau | Owned by: | Janne Grunau |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | mythtv | Version: | unknown |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Quoting http://doc.trolltech.com/3.3/qregexp.html#details
In case of multi-threaded programming, note that QRegExp depends on QThreadStorage internally. For that reason, QRegExp should only be used with threads started with QThread, i.e. not with threads started with platform-specific APIs.
Attachments (1)
Change History (4)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
(In [16274]) Merges [16191] from trunk: Convert EITScanner pthread from pthread to QThread
From: David <david at unsolicited point net> Fixes a segfault in the EITFixup QRegExps. QRegExp depends on QThreadStorage which can only be used in threads created by QThread.
I'm just converting the EITScanner thread due to the near release date. Other threads using QRegExp should be converted too or maybe not. I have not seen the same warning in the qt 4.3 docs. Refs #4695, Refs #4733
Changed 15 years ago by
Attachment: | eitcrash.diff added |
---|
original patch converting most of the threads to QThread from David
(In [16191]) Convert EITScanner pthread from pthread to QThread
From: David <david at unsolicited point net> Fixes a segfault in the EITFixup QRegExps. QRegExp depends on QThreadStorage which can only be used in threads created by QThread.
I'm just converting the EITScanner thread due to the near release date. Other threads using QRegExp should be converted too or maybe not. I have not seen the same warning in the qt 4.3 docs. Refs #4695, Refs #4733