Port and runloop problem
Port and runloop problem
- Subject: Port and runloop problem
- From: Raphael Sebbe <email@hidden>
- Date: Sun, 26 Aug 2001 09:08:23 +0200
Hi all,
I have a basic setup where a worker thread does the actual computing and
signals the main via an NSPort when it should refresh...
The problem is that when there are "too many" of these NSPortMessage,
some seem to be skipped. It is generally acceptable for me except for
the last message, which tells the thread has finished processing (and
stops a modal loop on the main thread). If I don't get it, my
application is locked. To give an example of the messages that go
through that port :
refresh
refresh
(...)
refresh
finished
And I sometimes don't get the "finished" one.
Is there a way to tell a message has to be absolutely delivered, or
should I use other inter-thread comm technique (polling with a timer,
but I'd prefer not...) ?
Raphael