XMLConfiguration Thread-Safe

A general discussion forum.
giuliosporti
Posts: 11
Joined: 11 Jun 2012, 12:15

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.

guenter
Posts: 1190
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: XMLConfiguration Thread-Safe

Postby guenter » 23 Apr 2013, 22:17

Yes, it's threadsafe.

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

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.

guenter
Posts: 1190
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: XMLConfiguration Thread-Safe

Postby guenter » 24 Apr 2013, 10:21

It applies to all classes based on Poco::Util::AbstractConfiguration.

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

Re: XMLConfiguration Thread-Safe

Postby giuliosporti » 25 Apr 2013, 14:43

Ok. Thank you very much.

Giulio.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests