// a helper for multi-threaded handling of async events
/** handles asynchronous links which may be called in multi-threaded environments Ifyouuseaninstanceofthisclassasmemberofyourownclass,itwillhandle severalcrucialpointsforyou(forinstancethecasethatsomebodypoststhe eventwhileanotherthreadtriestodeletethiseventinthe_destructor_ofthe class).
*/ class OAsynchronousLink final
{
Link<void*,void> m_aHandler; mutable std::mutex m_aEventSafety;
std::mutex m_aDestructionSafety;
ImplSVEvent * m_nEventId;
DECL_LINK(OnAsyncCall, void*, void);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.