Lines Matching defs:lwp
43 static constexpr ptid_t lwp = ptid_t (1, 2, 0);
57 static_assert (lwp.pid () == 1, "lwp's pid is right");
64 static_assert (lwp.lwp_p (), "lwp's lwp_p is right");
68 /* Verify lwp. */
70 static_assert (pid.lwp () == 0, "pid's lwp is right");
71 static_assert (lwp.lwp () == 2, "lwp's lwp is right");
72 static_assert (tid.lwp () == 0, "tid's lwp is right");
73 static_assert (both.lwp () == 2, "both's lwp is right");
78 static_assert (!lwp.tid_p (), "lwp's tid_p is right");
85 static_assert (lwp.tid () == 0, "lwp's tid is right");
92 static_assert (!lwp.is_pid (), "lwp isn't a pid");
101 static_assert (lwp == ptid_t (1, 2, 0), "lwp operator== is right");
108 static_assert (pid != lwp, "pid isn't equal to one of its thread");
109 static_assert (lwp != tid, "lwp isn't equal to tid");
110 static_assert (both != lwp, "both isn't equal to lwp");
116 static_assert (lwp.matches (minus_one), "lwp matches minus one");
123 static_assert (lwp.matches (pid), "lwp matches pid");
127 static_assert (!ptid_t (2, 2, 0).matches (pid), "other lwp doesn't match pid");
133 static_assert (!pid.matches (lwp), "pid doesn't match lwp");
134 static_assert (lwp.matches (lwp), "lwp matches lwp");
135 static_assert (!tid.matches (lwp), "tid doesn't match lwp");
136 static_assert (!both.matches (lwp), "both doesn't match lwp");
137 static_assert (!ptid_t (2, 2, 0).matches (lwp), "other lwp doesn't match lwp");
140 static_assert (!lwp.matches (tid), "lwp doesn't match tid");
146 static_assert (!lwp.matches (both), "lwp doesn't match both");