Skip to content

Commit 201056d

Browse files
authored
Apply suggestion from @msluszniak
1 parent f61becb commit 201056d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • packages/react-native-executorch/cpp/extensions/nlp

packages/react-native-executorch/cpp/extensions/nlp/tokenizer.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ class TokenizerHostObject : public facebook::jsi::HostObject,
2121
std::vector<facebook::jsi::PropNameID> getPropertyNames(facebook::jsi::Runtime &rt) override;
2222

2323
private:
24-
// Non-blocking try-lock on mutex_ that also checks the tokenizer is still
25-
// alive, throwing a facebook::jsi::JSError prefixed with `context` on
26-
// contention ("... is currently in use") or after dispose ("... has been
27-
// disposed").
2824
[[nodiscard]] std::unique_lock<std::mutex> tryLockUnique(facebook::jsi::Runtime &rt,
2925
std::string_view context);
3026

0 commit comments

Comments
 (0)