[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interrupt handing and the GUI (bug #37672)
From: |
John W. Eaton |
Subject: |
Re: interrupt handing and the GUI (bug #37672) |
Date: |
Mon, 11 Nov 2013 01:35:09 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
On 11/10/2013 10:45 PM, Daniel J Sebald wrote:
The last answer at this link seems to know more than the rest of us:
http://stackoverflow.com/questions/12820765/can-i-send-signals-to-different-threads
Maybe there is something there.
Yes, it mentions pthread_kill. That appears to allow us to direct a
signal to a particular thread.
I'm attaching a patch that seems to at least partially work for me.
At least interrupts seem to work now inside sleep and long running
functions like "inv (large_matrix)", but now I also get random
segfaults when typing Ctrl-C in the command window after a few
interrupts have been processed (it seems random).
I don't expect it will work on Windows. I suppose it just
happens to work for me because Qt is using pthreads on my system.
What if Qt doesn't use pthreads?
jwe
threading.diffs
Description: Text document
- Re: interrupt handing and the GUI (bug #37672), (continued)
- Re: interrupt handing and the GUI (bug #37672), John W. Eaton, 2013/11/10
- Re: interrupt handing and the GUI (bug #37672), Daniel J Sebald, 2013/11/10
- Re: interrupt handing and the GUI (bug #37672), Michael Goffioul, 2013/11/10
- Re: interrupt handing and the GUI (bug #37672), Daniel J Sebald, 2013/11/10
- Re: interrupt handing and the GUI (bug #37672),
John W. Eaton <=
- Re: interrupt handing and the GUI (bug #37672), Daniel J Sebald, 2013/11/11
- Re: interrupt handing and the GUI (bug #37672), Daniel J Sebald, 2013/11/12
- Re: interrupt handing and the GUI (bug #37672), Michael Goffioul, 2013/11/11
- Re: interrupt handing and the GUI (bug #37672), John W. Eaton, 2013/11/11
- Re: interrupt handing and the GUI (bug #37672), John Swensen, 2013/11/11
- Re: interrupt handing and the GUI (bug #37672), Michael Goffioul, 2013/11/11
- Re: interrupt handing and the GUI (bug #37672), John W. Eaton, 2013/11/13
- Re: interrupt handing and the GUI (bug #37672), Thorsten Liebig, 2013/11/13
- Re: interrupt handing and the GUI (bug #37672), Thorsten Liebig, 2013/11/13
- Message not available
- Re: interrupt handing and the GUI (bug #37672), John W. Eaton, 2013/11/13