mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
* fix: Use `std::exception_ptr` to preserve message * fix: Catch exception * fix: Fix `JSIConverter` * Update AssertPromiseState.hpp * Ok kinda fix? * ugh * fix again * Update JSIConverter+Promise.hpp * chore: Rename `_result` to `_state` * feat: Allow comparing message * fix: Fix `RuntimeError.description` * feat: Test all of those error messages as well
32 lines
553 B
C++
32 lines
553 B
C++
//
|
|
// ThreadUtils.hpp
|
|
// react-native-nitro
|
|
//
|
|
// Created by Marc Rousavy on 14.07.24.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace margelo::nitro {
|
|
|
|
class ThreadUtils final {
|
|
public:
|
|
ThreadUtils() = delete;
|
|
|
|
/**
|
|
* Get the current Thread's name.
|
|
* This is implemented differently on iOS and Android.
|
|
*/
|
|
static std::string getThreadName();
|
|
|
|
/**
|
|
* Set the current Thread's name.
|
|
* This is implemented differently on iOS and Android.
|
|
*/
|
|
static void setThreadName(const std::string& name);
|
|
};
|
|
|
|
} // namespace margelo::nitro
|