SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is GetTextOrDefault thread safe?

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Thu Feb 12, 2004 10:27 pm    Post subject: Is GetTextOrDefault thread safe? Reply with quote

Can it be called from more than one thread?

I have a source component without a form that runs in its own thread. How can I handle strings in this component?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Fri Feb 13, 2004 5:37 am    Post subject: Reply with quote

Yes it is thread safe since it will only read from translations list. So you can use it in threads as well.
Back to top
View user's profile Send private message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Fri Feb 13, 2004 9:14 am    Post subject: Reply with quote

Well, not exactly. tsiLang supports switching languages on the fly. I haven't checked, but I'm guessing that it changes the string lists.

Granted it's not a frequent operation, but experience with multi-threaded apps teaches me that the one you think is least likely is the one that get you.

++PLS
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group