Fix NS main thread check (bug#25265)

* src/nsterm.m (ns_read_socket, ns_select): Replace mainThread with
isMainThread.
This commit is contained in:
Alan Third 2017-01-14 16:57:46 +00:00
parent a23974d6e6
commit af3db69ee6

View file

@ -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);