Skip to content

Commit

Permalink
A couple of minor fixes in NativeToJsBridge
Browse files Browse the repository at this point in the history
  • Loading branch information
mganandraj committed Aug 28, 2019
1 parent 8d53a8a commit 61775be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ReactCommon/cxxreact/NativeToJsBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ void NativeToJsBridge::callFunction(
#else
(void)(systraceCookie);
#endif
SystraceSection s("NativeToJsBridge::callFunction", "module", module, "method", method);
// This is safe because we are running on the executor's thread: it won't
// destruct until after it's been unregistered (which we check above) and
// that will happen on this thread
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/cxxreact/NativeToJsBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class NativeToJsBridge {
bool m_applicationScriptHasFailure = false;

#ifdef WITH_FBSYSTRACE
std::atomic_uint_least32_t m_systraceCookie = ATOMIC_VAR_INIT();
std::atomic_uint_least32_t m_systraceCookie{};
#endif
};

Expand Down

0 comments on commit 61775be

Please sign in to comment.