mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Replace use of compare_exchange_weak with compare_exchange_strong
This fixes a bug where the web server could spuriously fail to start on 32-bit ARM.
This commit is contained in:
parent
9ab1c2a3cb
commit
5b079ccd27
@ -156,7 +156,7 @@ void Server::stop() {
|
||||
|
||||
bool Server::setStatus(v_int32 expectedStatus, v_int32 newStatus) {
|
||||
v_int32 expected = expectedStatus;
|
||||
return m_status.compare_exchange_weak(expected, newStatus);
|
||||
return m_status.compare_exchange_strong(expected, newStatus);
|
||||
}
|
||||
|
||||
void Server::setStatus(v_int32 status) {
|
||||
|
Loading…
Reference in New Issue
Block a user