[Top][All Lists]

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

Re: User interaction from multiple threads

From: John Shahid
Subject: Re: User interaction from multiple threads
Date: Wed, 29 Aug 2018 22:34:02 -0400
User-agent: mu4e 1.1.0; emacs 27.0.50

Phil Sainty <address@hidden> writes:

> On 30/08/18 05:36, John Shahid wrote:
>> The child thread can request the main thread to display a prompt and
>> return the value that the user entered.
> The notion of user interaction all happening on the main thread was
> proposed earlier, and it was pointed out that it's very difficult to
> do that, because the user interaction may involve arbitrary data which
> is local to the originating thread.

I thought closures would solve such a problem by encapsulating the
context.  I imagine the main thread receiving forms from other threads
evaluating them and returning the results back to the thread which
becomes the value of the `(on-main-thread ...)`.  What did I miss ?

reply via email to

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