Explorar o código

Use OS independent atomic function instead of Windows specific

bel %!s(int64=9) %!d(string=hai) anos
pai
achega
a7f49cc7fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -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;
 			}