Re: Exceptions and thread-safety
On Oct 31, 8:56 am, Ioannis Gyftos <ioannis.gyf...@gmail.com> wrote:
I was afraid of this, since I hear the C++ standard is not
thread-aware. So, I will try to work this around a bit.
Most implementations today are, however; the exact guarantees
vary, but should be sufficient to allow simultaneously throwing
an exception in two different threads. This was not necessarily
the case a few years ago, however---g++ 2.85.2, for example, was
*not* thread aware, and did have problems when two threads threw
an exception at the same time.
I know it's a rather bad design, but I was not aware of the
fact that all Qt GUI must drawn at a specific thread when I
started this :(
Isn't that a restriction in all GUI libraries? The usual
solution is to convert the request to some sort of GUI request,
on the GUI event queue, and have the GUI send you a message back
when the request was handled.
James Kanze (GABI Software) email:firstname.lastname@example.org
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34