本文整理汇总了C++中PlaceholderEntry::add_seen_thread方法的典型用法代码示例。如果您正苦于以下问题:C++ PlaceholderEntry::add_seen_thread方法的具体用法?C++ PlaceholderEntry::add_seen_thread怎么用?C++ PlaceholderEntry::add_seen_thread使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlaceholderEntry
的用法示例。
在下文中一共展示了PlaceholderEntry::add_seen_thread方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: find_and_add
// find_and_add returns probe pointer - old or new
// If no entry exists, add a placeholder entry
// If entry exists, reuse entry
// For both, push SeenThread for classloadAction
// if havesupername: this is used for circularity for instanceklass loading
PlaceholderEntry* PlaceholderTable::find_and_add(int index, unsigned int hash, symbolHandle name, Handle loader, classloadAction action, symbolHandle supername, Thread* thread) {
PlaceholderEntry* probe = get_entry(index, hash, name, loader);
if (probe == NULL) {
// Nothing found, add place holder
add_entry(index, hash, name, loader, (action == LOAD_SUPER), supername);
probe = get_entry(index, hash, name, loader);
} else {
if (action == LOAD_SUPER) {
probe->set_havesupername(true);
probe->set_supername(supername());
}
}
if (probe) probe->add_seen_thread(thread, action);
return probe;
}