Re: sockets in threaded obj-C app.
Re: sockets in threaded obj-C app.
- Subject: Re: sockets in threaded obj-C app.
- From: Robert Tillyard <email@hidden>
- Date: Sat, 21 Sep 2002 01:37:42 +0100
Thank you both for your help. Because read() had appeared to block the
whole process I assumed it wasn't allowed, after hearing that it should
work I checked the code again and found that the problem was my code.
I had a method that should have started the thread but I called the
method that 'was' the thread in error so read() wasn't in a thread. The
debugging in the thread was printed so I thought it was running - it
was, just not independently.
Thank you David for the NSFileHandle tip, I will have a look at that.
Thanks again, regards, Rob.
On Saturday, September 21, 2002, at 01:21 am, Greg Titus wrote:
Hi Robert,
I can't be much specific help without seeing your code, but it is
definitely allowed and should work fine to call read() from any
thread, and it should not block any other thread. Your problem must
lie elsewhere.
Hope this helps,
-Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.