To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=113103
------- Additional comments from [email protected] Fri Oct 1 14:45:19 +0000 2010 ------- @iha: Whether <http://hg.services.openoffice.org/DEV300/file/677514a8f027/chart2/source/model/main/GridProperties.cxx#l90> can be removed of course depends on how the data accessed in the following lines needs to be guarded -- I do not know that. (And this is independent of any compiler used; or am I missing something?) The benefits of rtl::Static over roll-your-own T & getSingleton() { static T t; return t; } is that it is safe for multiple threads to call MyStatic::get; and the benefits over thread-safe roll-your-own T & getSingleton() { osl::MutexGuard g(...); static T; return t; } is that MyStatic::get has potentially better performance. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
