From 8025322857302744617508639990950630312249 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 22 Jul 2024 16:20:36 -0400 Subject: API for setting the current OS thread's name For debugging threads when you have like 50 and want to find one at a glance --- binaryninjaapi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binaryninjaapi.cpp') diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp index 202019ed..70cd9e54 100644 --- a/binaryninjaapi.cpp +++ b/binaryninjaapi.cpp @@ -596,3 +596,9 @@ std::optional BinaryNinja::FuzzyMatchSingle(const std::string& target, c } return result; } + + +void BinaryNinja::SetThreadName(const std::string& name) +{ + BNSetThreadName(name.c_str()); +} -- cgit v1.3.1