|
From: davids <da...@da...> - 1999-12-21 18:23:35
|
I'm porting nb++ to solaris 2.6 and looking at using a boss-worker threading model. I looked at the samples and while the serversocktest example does what I need, I'd rather use a threadpool as in threadtest-multi. The threadtest-multi does a many to many thread model which won't work for what I need as I have a function which is called as a registered event. I did notice MultiThreader, which returns a ThreadPool object, in the documentation. And I see an example of that in the daemontest, so it looks like I could use NetworkDaemon as my example and derive from Daemon to do what I wish. So, am I on the right track? It may take a couple of weeks and the result could be ugly (#ifdef SOLARIS) but when I get it running I'll get the code back to you, (better I should use CVS?). It seems the linker that comes with Solaris 2.6 is giving me problems, so I'll try the GNU one. I'll keep you updated. -Dave Sheckler |