소스 검색

* optimization in WebAssembly's MutexKind() function - mark the first parameter
as const, to avoid making a copy on the stack

Nikolay Nikolov 1 년 전
부모
커밋
8413c2b073
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/wasi/wasmmutex.inc

+ 1 - 1
rtl/wasi/wasmmutex.inc

@@ -8,7 +8,7 @@ Type
   TMutexKind = (mkNormal,mkRecursive);
   TLockMutexResult = (lmrNone,lmrOK,lmrNotOwner,lmrError,lmrTimeout);
 
-Function MutexKind(M : TWasmMutex) : TMutexKind;
+Function MutexKind(const M : TWasmMutex) : TMutexKind;
 
 begin
   Result:=TMutexKind(M.Kind);