[Top][All Lists]

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

Re: make-thread with lambda form instead of function symbol

From: Eric Abrahamsen
Subject: Re: make-thread with lambda form instead of function symbol
Date: Mon, 17 Apr 2017 10:18:17 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Eric Abrahamsen <address@hidden> writes:

> Eli Zaretskii <address@hidden> writes:


>> What does it mean "moved" in this context?  How did you try to "move"
>> a process to another thread?
>> The ELisp manual says:
>>   ... by default a process is locked to the thread
>>   that created it.  When a process is locked to a thread, output from the
>>   process can only be accepted by that thread.
>> If you want to be able to accept process output from a thread other
>> than the one which created it, you need to call set-process-thread.
> Okay that certainly explains it -- I hadn't found that part of the
> manual. The IMAP process in question was long-running, created well
> before this thread was, so I was doing exactly the wrong thing. (All I
> meant by "move" was starting the process in one thread, and accepting
> its output in another.)
> Segfault's gone, thank you. Now to figure out where to stick the call to
> `set-process-thread'.

I tried unlocking all IMAP processes early on, when they're first
created, and so far it seems to be working great!

reply via email to

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