blob: f1061138661f8912dbcee3074892fccf0a5c4439 [file] [log] [blame]
Philipp Schraderab2f8432023-09-17 18:58:06 -07001#include "aos/ipc_lib/robust_ownership_tracker.h"
2
3#include "aos/ipc_lib/lockless_queue.h"
4
5namespace aos {
6namespace ipc_lib {
7
Philipp Schraderab2f8432023-09-17 18:58:06 -07008::std::string RobustOwnershipTracker::DebugString() const {
9 ::std::stringstream s;
10 s << "{.tid=aos_mutex(" << ::std::hex << mutex_.futex;
11
12 if (mutex_.futex != 0) {
13 s << ":";
14 if (mutex_.futex & FUTEX_OWNER_DIED) {
15 s << "FUTEX_OWNER_DIED|";
16 }
17 s << "tid=" << (mutex_.futex & FUTEX_TID_MASK);
18 }
19
20 s << "),}";
21 return s.str();
22}
23
24} // namespace ipc_lib
25} // namespace aos