- Code: Select all
static std::string getTime() {
Timestamp now;
return DateTimeFormatter::format(LocalDateTime(DateTime(now)), "%Y-%m-%d %H:%M:%S.%i");
}
Sometimes I get segmentation fault within this function in a multithreaded application, on the return line when std::string is created. I'm suspecting that one of the Poco classes used above is not thread safe, but found no mention of this in the docs. Could you please advice?
I'm using Poco 1.3.6p2 on 64bit SLES11 SP1.





