Lines Matching refs:handle
34 NodeHandleMap::AddNodeHandle(NodeHandle* handle)
36 if (!handle)
41 handle->SetCookie(_NextNodeHandleCookie());
43 status_t error = Put(handle->GetCookie(), handle);
45 handle->AcquireReference();
52 NodeHandleMap::RemoveNodeHandle(NodeHandle* handle)
54 if (!handle)
59 if (Get(handle->GetCookie()) != handle)
62 Remove(handle->GetCookie());
63 handle->ReleaseReference();
76 NodeHandle* handle;
80 // get the node handle
81 handle = Get(cookie);
82 if (!handle)
84 handle->AcquireReference();
86 // first attempt: we just try to lock the node handle, which will fail,
88 if (handle->Lock()) {
89 *_handle = handle;
102 if (handle->Lock()) {
103 *_handle = handle;
106 handle->QueueLockerCandidate(&lockerCandidate);
112 handle->ReleaseReference();
116 *_handle = handle;