소스 검색

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