""Leif Jackson"" <[EMAIL PROTECTED]> said: >> If we're using Glib, then let's also use Glib's threading interface. It >> gives us transparency over a variety of thread implementations and >> platforms, and provides for graceful failure in case there is no thread >> implementation at all. > > The issue is that glib's thead pool won't work for an application server > like dbmail, it is a pool or worker functions I wrote another program > using glib's thread interface and it is a nightmare. I have a thread pool > implementaion that is mostly from the pthreads book by o'reilly with real > world updates and improments to it. It should be portable and if we make > the threads configurable that would take care of the systems that don't > allow for threads.
There are two sets of thread API's in Glib: Threads and ThreadPools. I haven't used either, but Threads looks like an appropriate wrapper around PThreads and Solaris threads. Does that address your thread pool concerns? Aaron --