1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Use OS independent atomic function instead of Windows specific

This commit is contained in:
bel
2016-07-15 20:26:26 +02:00
parent c262166b3f
commit a7f49cc7fd

View File

@@ -11174,7 +11174,7 @@ refresh_trust(struct mg_connection *conn)
}
}
if (1 == InterlockedIncrement(p_reload_lock)) {
if (1 == mg_atomic_inc(p_reload_lock)) {
if (ssl_use_pem_file(conn->ctx, pem) == 0) {
return 0;
}