[Samba] do samba4 support multi-thread now?
Jeremy Allison
jra at samba.org
Thu Dec 12 09:43:18 MST 2013
On Wed, Dec 11, 2013 at 06:51:25AM +0000, wodemeng2007 at gmail.com wrote:
> Hi gues,
>
>
> I want to implement something with samba , while multi tasks might need to be processed at the same time , can samba now support multi-thread ?
Yes (*) (**) (***).
(*) So long as your mt-safe code doesn't re-enter
the rest of Samba code :-).
(**) Look at source3/lib/pthreadpool/ and
source3/lib/asys/ for details.
(***) You might just want to use the infrastructure
in pthreadpool and asys as-is. They're a really
nice interface to re-use.
More information about the samba
mailing list