Fix NS main thread check (bug#25265)
* src/nsterm.m (ns_read_socket, ns_select): Replace mainThread with isMainThread.
This commit is contained in:
parent
a23974d6e6
commit
af3db69ee6
1 changed files with 2 additions and 2 deletions
|
@ -4039,7 +4039,7 @@ in certain situations (rapid incoming events).
|
|||
return i;
|
||||
}
|
||||
|
||||
if ([NSThread mainThread])
|
||||
if ([NSThread isMainThread])
|
||||
{
|
||||
block_input ();
|
||||
n_emacs_events_pending = 0;
|
||||
|
@ -4123,7 +4123,7 @@ in certain situations (rapid incoming events).
|
|||
}
|
||||
|
||||
if (NSApp == nil
|
||||
|| ![NSThread mainThread]
|
||||
|| ![NSThread isMainThread]
|
||||
|| (timeout && timeout->tv_sec == 0 && timeout->tv_nsec == 0))
|
||||
return pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue