8#include "architecture.hpp"
22 friend std::strong_ordering
35 static void *
lock(
void *
object)
noexcept;
41 static bool unlock(
void *
object)
noexcept;
62 thread_local inline static
std::vector<
void *>
stack;
69 inline static
std::vector<detail::dead_lock_detector_pair> lock_graph;
71 [[nodiscard]] static
void *check_graph(
void *
object) noexcept;
Definition dead_lock_detector.hpp:17
Definition dead_lock_detector.hpp:28
static void clear_graph() noexcept
Clear the graph.
static void * lock(void *object) noexcept
Lock an object on this thread.
static void clear_stack() noexcept
Clear the stack.
static void remove_object(void *object) noexcept
Remove the object from the detection.
static bool unlock(void *object) noexcept
Unlock an object on this thread.
A static sized stack.
Definition stack.hpp:23