On Monday, September 16, 2013 3:17 PM [GMT+1=CET],
Éric Fleming Bonilha wrote:

> Hello
> 
> 
> 
> I have an application that TWSocketServer is running in main thread,
> consequently, all messages from clients are also processed by the main
> thread loop
> 
> 
> 
> I have been able to change the processing thread of the clientes from
> main thread to a pool of threads that I have (By using ThreadDetach
> and ThreadAttach) and it has been working fine, but I would like to
> know if this kind of operation is advised or if I can run into some
> erros... is ICS totally thread-aware for this kind of thing?

No, ICS is not thread-safe (out of the box)! Like the VCL is not thread-safe
as well. Use of ThreadDetach and ThreadAttach just ensures that ICS-events
trigger in the attached thread's context. There's more to serialize like
access to the client list, etc. 

-- 
Arno
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to