本文整理汇总了C++中LLPointer::isInQueue方法的典型用法代码示例。如果您正苦于以下问题:C++ LLPointer::isInQueue方法的具体用法?C++ LLPointer::isInQueue怎么用?C++ LLPointer::isInQueue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLPointer
的用法示例。
在下文中一共展示了LLPointer::isInQueue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LLMediaDataClientObjectTest
void mediadataclient_object_t::test<13>()
{
//
// Test supression of redundant navigates.
//
LOG_TEST(13);
LLMediaDataClientObject::ptr_t o1 = new LLMediaDataClientObjectTest(_DATA(VALID_OBJECT_ID_1,"1.0","true"));
{
LLPointer<LLObjectMediaNavigateClient> mdc = new LLObjectMediaNavigateClient(NO_PERIOD,NO_PERIOD);
const char *TEST_URL = "http://foo.example.com";
const char *TEST_URL_2 = "http://example.com";
mdc->navigate(o1, 0, TEST_URL);
mdc->navigate(o1, 1, TEST_URL);
mdc->navigate(o1, 0, TEST_URL_2);
mdc->navigate(o1, 1, TEST_URL_2);
// This should add two requests to the queue, one for face 0 of the object and one for face 1.
ensure("before pump: 1 is in queue", mdc->isInQueue(o1));
::pump_timers();
ensure("after first pump: 1 is in queue", mdc->isInQueue(o1));
::pump_timers();
ensure("after second pump: 1 is not in queue", !mdc->isInQueue(o1));
ensure("first post has correct url", (*gPostRecords)[0]["body"][LLMediaEntry::CURRENT_URL_KEY].asString(), std::string(TEST_URL_2));
ensure("second post has correct url", (*gPostRecords)[1]["body"][LLMediaEntry::CURRENT_URL_KEY].asString(), std::string(TEST_URL_2));
}
}