thread pool helpers

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri May 1 10:38:57 GMT 2009

On Tue, Apr 28, 2009 at 05:47:13PM +1000, tridge at wrote:
> I think you've created a really nice API, but the brokenness of
> pthreads make me think that we're better off implementing that API
> either on top of fork() or on top of a raw clone() call.

I've pushed it now as is.

There might be pthreads implementations around that are not
as broken. Maybe the FreeBSD one that Isilon is based upon
is better in that respect, but Tim and Steven should comment

You can disable it and replace it with a sync replacement.

I've looked at a clone based implementation of
fncall_send/recv that coordinates via pipes. My main problem
here is to find a way to implement memory barriers to make
sure we see all helper threads' memory contents correctly.
Do the pipe syscalls guarantee such a memory barrier?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list