Lines Matching refs:proc
23 Processor *proc = new(mem) Processor; in ProcCreate() local
24 proc->thr = nullptr; in ProcCreate()
26 AllocatorProcStart(proc); in ProcCreate()
29 proc->dd_pt = ctx->dd->CreatePhysicalThread(); in ProcCreate()
30 return proc; in ProcCreate()
33 void ProcDestroy(Processor *proc) { in ProcDestroy() argument
34 CHECK_EQ(proc->thr, nullptr); in ProcDestroy()
36 AllocatorProcFinish(proc); in ProcDestroy()
38 ctx->metamap.OnProcIdle(proc); in ProcDestroy()
40 ctx->dd->DestroyPhysicalThread(proc->dd_pt); in ProcDestroy()
41 proc->~Processor(); in ProcDestroy()
42 InternalFree(proc); in ProcDestroy()
45 void ProcWire(Processor *proc, ThreadState *thr) { in ProcWire() argument
47 CHECK_EQ(proc->thr, nullptr); in ProcWire()
48 thr->proc1 = proc; in ProcWire()
49 proc->thr = thr; in ProcWire()
52 void ProcUnwire(Processor *proc, ThreadState *thr) { in ProcUnwire() argument
53 CHECK_EQ(thr->proc1, proc); in ProcUnwire()
54 CHECK_EQ(proc->thr, thr); in ProcUnwire()
56 proc->thr = nullptr; in ProcUnwire()