Lines Matching refs:tag
28 // Note that an empty slot is marked with a tag == 0 that is why is
29 // not a valid imput tag
30 bool SharedHandles::SetHandle(uint32 tag, HANDLE handle) {
31 if (0 == tag) {
32 // Invalid tag
35 // Find empty slot and put the tag and the handle there
40 empty_slot->tag = tag;
45 bool SharedHandles::GetHandle(uint32 tag, HANDLE* handle) {
46 if (0 == tag) {
47 // Invalid tag
50 SharedItem* found = FindByTag(tag);
58 SharedHandles::SharedItem* SharedHandles::FindByTag(uint32 tag) {
60 if (tag == shared_.items[ix].tag) {