Overview
Features
Download
Documentation
Community
Add-Ons & Services

XMLConfiguration Thread-Safe

A general discussion forum.

XMLConfiguration Thread-Safe

Postby giuliosporti » 23 Apr 2013, 11:09

Hello guys,

I am using XMLConfiguration in multithread enviroment. I need to know if it is Thread-safe using methods like "getBool", "getDouble", etc. "setBool", "setDouble" etc. in one thread and in another thread the method like "void save(std::ostream & str) const".

Thanks
Giulio.
giuliosporti
 
Posts: 11
Joined: 11 Jun 2012, 12:15

Re: XMLConfiguration Thread-Safe

Postby guenter » 23 Apr 2013, 22:17

Yes, it's threadsafe.
guenter
 
Posts: 1091
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: XMLConfiguration Thread-Safe

Postby giuliosporti » 24 Apr 2013, 08:04

The same applies for "JSONConfiguration" when I use methods like "setInt", "setDouble", "getInt", "getDouble", etc. in one thread and "load" and "save" in another thread, doesn't it?

Thanks
Giulio.
giuliosporti
 
Posts: 11
Joined: 11 Jun 2012, 12:15

Re: XMLConfiguration Thread-Safe

Postby guenter » 24 Apr 2013, 10:21

It applies to all classes based on Poco::Util::AbstractConfiguration.
guenter
 
Posts: 1091
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: XMLConfiguration Thread-Safe

Postby giuliosporti » 25 Apr 2013, 14:43

Ok. Thank you very much.

Giulio.
giuliosporti
 
Posts: 11
Joined: 11 Jun 2012, 12:15


Return to General Discussion

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest