本文整理汇总了C++中CpDevice::AddRef方法的典型用法代码示例。如果您正苦于以下问题:C++ CpDevice::AddRef方法的具体用法?C++ CpDevice::AddRef怎么用?C++ CpDevice::AddRef使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CpDevice
的用法示例。
在下文中一共展示了CpDevice::AddRef方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Added
void DeviceList::Added(CpDevice& aDevice)
{
AutoMutex a(iLock);
if (!iStopped) {
iList.push_back(&aDevice);
aDevice.AddRef();
}
}
示例2: Added
void CpDevices::Added(CpDevice& aDevice)
{
iLock.Wait();
if (aDevice.Udn() == iTargetUdn) {
iDevices.push_back(&aDevice);
aDevice.AddRef();
iAddedSem.Signal();
}
iLock.Signal();
}
示例3: Added
void DeviceListTI::Added(CpDevice& aDevice)
{
AutoMutex a(iLock);
if (!iStopped) {
iList.push_back(&aDevice);
ASSERT(aDevice==aDevice);
ASSERT(!(aDevice!=aDevice));
aDevice.AddRef();
}
}
示例4: Added
void CpDevices::Added(CpDevice& aDevice)
{
iLock.Wait();
if (aDevice.Udn() == gDeviceName) {
iList.push_back(&aDevice);
aDevice.AddRef();
iAddedSem.Signal();
}
iLock.Signal();
}
示例5: Added
void CpDevices::Added(CpDevice& aDevice)
{
iLock.Wait();
const Brx& udn = aDevice.Udn();
if (udn == gNameDevice1 || udn == gNameDevice1_1 || udn == gNameDevice1_2 || udn == gNameDevice2) {
iList.push_back(&aDevice);
aDevice.AddRef();
}
iLock.Signal();
}
示例6: Added
void CpDevices::Added(CpDevice& aDevice)
{
iLock.Wait();
const Brx& udn = aDevice.Udn();
if (udn == gNameDevice1 || udn == gNameDevice1_1 || udn == gNameDevice1_2 || udn == gNameDevice2) {
iList.push_back(&aDevice);
aDevice.AddRef();
}
if ((TUint)iList.size() == iTargetCount) {
iSem.Signal();
}
iLock.Signal();
}