20#include <xrpl/beast/core/CurrentThreadName.h>
21#include <xrpl/beast/unit_test.h>
47 if (!initialThreadName.empty())
76 while (stateA == 0 || stateB == 0)
84 BEAST_EXPECT(stateA == 2);
85 BEAST_EXPECT(stateB == 2);
static void exerciseName(std::string myName, std::atomic< bool > *stop, std::atomic< int > *state)
void run() override
Runs the suite.
void setCurrentThreadName(std::string_view newThreadName)
Changes the name of the caller thread.
std::string getCurrentThreadName()
Returns the name of the caller thread.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.