garydgregory commented on pull request #596: URL: https://github.com/apache/logging-log4j2/pull/596#issuecomment-963099301
> > I am not sure this solves the whole issue of multi-threading usage, in particular, I wonder if the methods that access both of these variables shouldn't just be synchronized instead. > > The synchronized methods may cause low performance, so here I just make a compromise between performance and visibility. Maybe AtomicLong or AtomicInteger is more appropriate. How would that solve both variables being updated in the same method by different threads? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
