On Tuesday, September 17, 2013 7:36 PM [GMT+1=CET],
Éric Fleming Bonilha wrote:

>> 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.
> 
> Ok, so if I use ThreadAttach and ThreadDetach in clients from
> TWSocketServer I may have trouble?

Not neccessarily, if you know what you are doing it's fine.
 
> My code  inside the event triggers is fine for multi-thread

That is required indeed. For instance no access to the client 
list, no plain access to the VCL etc..

Without having a look at your source code it's hard to say.

-- 
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