emacs-devel
[Top][All Lists]
Advanced

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

Re: NS port thread problems


From: Alan Third
Subject: Re: NS port thread problems
Date: Sat, 23 Oct 2021 11:27:45 +0100

On Thu, Oct 21, 2021 at 08:35:01AM +0800, Po Lu wrote:
> Alan Third <alan@idiocy.org> writes:
> 
> > One solution would be to use Objective C "blocks" to run the code in
> > the main thread, but GCC doesn't support them, so that's out.
> 
> I'm aware of this feature, but I don't understand how it will allow for
> running code in the main thread.

You can send a block off to run in another thread. Look up
dispatch_sync and friends.

-- 
Alan Third



reply via email to

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