wodemeng2007 at gmail.com
2013-Dec-11 06:51 UTC
[Samba] do samba4 support multi-thread now?
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 ? Thank you for your kindly help!!! ?? Windows ??
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.