[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 8dcb19f 4/4: Add a unit test testing interaction between thre
From: |
Stefan Monnier |
Subject: |
Re: master 8dcb19f 4/4: Add a unit test testing interaction between threads and processes. |
Date: |
Sun, 28 Feb 2021 13:36:21 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> But set-process-thread accepts a thread argument, so you could bind
>> the process to a particular thread, couldn't you?
> Yes, but the threads that call `accept-process-output’ and
> `process-send-eof’ are different threads; binding the process object to one
> of the threads would cause the other call to fail.
IIRC `set-process-thread` determines the thread in which the process
filters and sentinels are run. You can still call
`accept-process-output’ and `process-send-eof’ from other threads.
Stefan