apache / logging-log4cxx

Apache Log4cxx is a C++ port of Apache Log4j
http://logging.apache.org/log4cxx
Apache License 2.0
278 stars 122 forks source link

Prevent asyncappender test timeout #416

Closed swebb2066 closed 1 month ago

swebb2066 commented 1 month ago

This PR fixes #402 which is caused when more threads than cores (A Github runnuer is limited to only 2 cores) result in multiple thread in a std::atomic::compare_exchange_weak busy loop.

The scheduler then occasionally runs the thread where the compare_exchange succeeds, which make the test run extremely slowly.