emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System calls without error checks in w32


From: Lennart Borgman
Subject: Re: System calls without error checks in w32
Date: Mon, 7 Jun 2010 19:30:15 +0200

On Mon, Jun 7, 2010 at 7:21 PM, grischka <address@hidden> wrote:
> Lennart Borgman wrote:
>>
>> I guess the idea of having two event loops/thread is not in itself
>> bad. If the gui thread is never blocked it can be used to convey
>> status information at least to the user. (You can put these in
>> temporary windows inside the frame for example.)
>
> Since this is Emacs you'd probably want to format your status info
> in Lisp.  Bye nice idea and welcome to thread hell.


I see no reason to format it in Lisp. Or rather my idea is that the
status information is formated by the lisp thread in advance and sent
to the gui thread in a non-lisp format. Then the gui thread can offer
that information without contactinog the lisp thread.

Displaying that information is just a matter of formatting a native
w32 window with it.

Similar things can of course be done on other platforms, but this part
of the code is necessary platform specif (at least in the core parts
of it).


> I guess there are some people wondering sometimes about something.
> Thread bugs typically show up sometimes.  And typically you'll find
> nobody who wants to look at them.


Looking at this kind of bugs is hard and requires that you have a good
enough picture of the message queue system. And just guessing what to
look at is difficult.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]