<div dir="ltr">On Wed, Mar 20, 2013 at 9:02 AM, Jesper Särnesjö <span dir="ltr">&lt;<a href="mailto:sarnesjo@gmail.com" target="_blank">sarnesjo@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">This solution seems to work perfectly for me. Since the foreign code</div>
is allowed to run uninterrupted, the GPU switch happens, and since the<br>
GUI actions stay on the main thread, the program&#39;s window responds to<br>
keyboard and mouse input correctly.<br></blockquote><div><br></div><div>If that&#39;s correct, then I think you have found a bug in the GHC runtime: my understanding is that the timers should be disabled while foreign code is running, specifically to avoid confusing code that has no clue that there is another runtime involved.</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div>