From 320e85b980ac59334c4ebe338bc99ab70b67eda8 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Tue, 5 Nov 2024 09:19:30 +0100 Subject: [PATCH] Explain why we don't need a mutex --- android/src/main/cpp/MarkdownUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/cpp/MarkdownUtils.cpp b/android/src/main/cpp/MarkdownUtils.cpp index dceba15f..9621e46f 100644 --- a/android/src/main/cpp/MarkdownUtils.cpp +++ b/android/src/main/cpp/MarkdownUtils.cpp @@ -11,6 +11,7 @@ namespace livemarkdown { jni::alias_ref jThis, jni::alias_ref input, int parserId) { + // This method is synchronized (see MarkdownUtils.java) so we don't need a mutex here. const auto markdownRuntime = expensify::livemarkdown::getMarkdownRuntime(); jsi::Runtime &rt = markdownRuntime->getJSIRuntime();