Re: [twsocket] NO_ADV_MT symbol

2005-09-04 Thread Francois PIETTE
>> it is safe to define NO_ADV_MT when a TWSocket instance is use from a >> single thread only > > It seems I missed that one. I have checked the code and it seems to me > it is only there for if you want to call TWSocket methods from another > thread context as where it is created in. Is that cor

Re: [twsocket] NO_ADV_MT symbol

2005-09-04 Thread Wilfried Mestdagh
Hello Francois, > it is safe to define NO_ADV_MT when a TWSocket instance is use from a > single thread only It seems I missed that one. I have checked the code and it seems to me it is only there for if you want to call TWSocket methods from another thread context as where it is created in. Is t

Re: [twsocket] NO_ADV_MT symbol

2005-09-03 Thread Dan
- Original Message - From: "Francois Piette" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Friday, September 02, 2005 12:30 PM Subject: Re: [twsocket] NO_ADV_MT symbol >> > IMO it is better design to have all access to a given >> > comp

Re: [twsocket] NO_ADV_MT symbol

2005-09-02 Thread Francois Piette
> > IMO it is better design to have all access to a given > > component from only one thread. And in that case, you can > > define NO_ADV_MT to have better performances because you > > avoid using a critical section. > > Thank you, this answers my questions. > > I use 2 servers and some clients in

Re: [twsocket] NO_ADV_MT symbol

2005-09-02 Thread Bjørnar Nielsen
> IMO it is better design to have all access to a given > component from only one thread. And in that case, you can > define NO_ADV_MT to have better performances because you > avoid using a critical section. Thank you, this answers my questions. I use 2 servers and some clients in same exe, b

Re: [twsocket] NO_ADV_MT symbol

2005-09-02 Thread Francois Piette
> I wonder when it is safe to define NO_ADV_MT. > > Must I not define NO_ADV_MT at all when I use threads? > > What if I use a socketserver in one thread and another socketserver in > another thread and there is no interaction between the threads? The client > connections always stays within the t