소스 검색

Merge pull request #935 from vaind/stop-flag-lock-fix

Stop flag lock - fix missing functions
bel2125 4 년 전
부모
커밋
9d2498a3b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1317,7 +1317,7 @@ mg_atomic_dec(volatile ptrdiff_t *addr)
 }
 
 
-#if defined(USE_SERVER_STATS)
+#if defined(USE_SERVER_STATS) || defined(STOP_FLAG_NEEDS_LOCK)
 static ptrdiff_t
 mg_atomic_add(volatile ptrdiff_t *addr, ptrdiff_t value)
 {