Lines Matching defs:link
81 Link link[kMaxLink];
236 Link *link = &mtx1->link[li];
237 if (link->id == m->id) {
238 if (link->seq != mtx->seq) {
239 link->seq = mtx->seq;
240 link->tid = lt->ctx;
241 link->stk0 = stk1;
242 link->stk1 = cb->Unwind();
244 VPrintf(3, "#%llu: DD::MutexBeforeLock added %d->%d link\n",
252 Link *link = &mtx1->link[mtx1->nlink++];
253 link->id = m->id;
254 link->seq = mtx->seq;
255 link->tid = lt->ctx;
256 link->stk0 = stk1;
257 link->stk1 = cb->Unwind();
259 VPrintf(3, "#%llu: DD::MutexBeforeLock added %d->%d link\n",
372 pt->pending[npending++] = mtx->link[li];
375 Link link = pt->pending[--npending];
376 if (link.id == kEndId) {
380 if (pt->visited[link.id])
382 Mutex *mtx1 = getMutex(link.id);
384 if (mtx1->seq != link.seq)
386 pt->visited[link.id] = true;
389 pt->path[npath++] = link;
391 if (link.id == m->id)
394 Link *link1 = &mtx1->link[li];
395 // Mutex *mtx2 = getMutex(link->id);
409 Link *link = &pt->path[i];
411 rep->loop[i].thr_ctx = link->tid;
413 rep->loop[i].mtx_ctx1 = link->id;
414 rep->loop[i].stk[0] = flags.second_deadlock_stack ? link->stk0 : 0;
415 rep->loop[i].stk[1] = link->stk1;