瀏覽代碼

Use OS independent atomic function instead of Windows specific

bel 9 年之前
父節點
當前提交
a7f49cc7fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 			}