TrivialThread and factory objects
TrivialThread and factory objects
- Subject: TrivialThread and factory objects
- From: Robert Goldsmith <email@hidden>
- Date: Mon, 23 Sep 2002 15:33:52 +0100
Hi all :)
I'm also working through some thread stuff and DO and I've been very
carefully looking through TrivialThread and SimpleThread examples. I
have a (prob. simple) couple of (compound) questions:
1) The factory object connectWithPorts: creates the autorelease pool.
What scope does this have? I assume that all the thread instances
created share this pool. Does the factory method need to have this pool
or can I manage it on a per-instance basis?
2) The runloop is started in the factory object. This I just don't get
at all. Does this mean that the instances are all bound to the same
runloop? So stopping that one runloop should terminate all the threads?
I think I could do with a bit of an overview as to why this is a good
(or bad) thing, please :)
thank you
Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk/RSGoldsmith.asc
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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.