本文整理匯總了C++中Linked::notify方法的典型用法代碼示例。如果您正苦於以下問題:C++ Linked::notify方法的具體用法?C++ Linked::notify怎麽用?C++ Linked::notify使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Linked
的用法示例。
在下文中一共展示了Linked::notify方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: notify
virtual void notify(SubscriptionId subid, const char *daliXpath, SDSNotifyFlags flags, unsigned valueLen, const void *valueData)
{
Linked<CDaliPackageWatcher> me = this; // Ensure that I am not released by the notify call (which would then access freed memory to release the critsec)
Linked<ISDSSubscription> myNotifier;
{
CriticalBlock b(crit);
if (traceLevel > 5)
DBGLOG("Notification on %s (%s), %p", xpath.get(), daliXpath ? daliXpath : "", this);
myNotifier.set(notifier);
// allow crit to be released, allowing this to be unsubscribed, to avoid deadlocking when other threads via notify call unsubscribe
}
if (myNotifier)
myNotifier->notify(subid, daliXpath, flags, valueLen, valueData);
}