You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help the community better understand the problem and answer your question, could you create a standalone project on GitHub allowing to reproduce the issue ?
I want to achieve nested message sending for three plugins through a publish-subscribe mechanism.
I have three plugins: BlogManager, BlogEventHandler and BlogManager1:
BlogManager first send a topic of event to
BlogEventHandler
byeventAdmin->publishSignal
;BlogEventHandler
receive the topic of event byeventAdmin->subscribeSlot
, and send a topic of event to BlogManager1 byeventAdmin->publishSignal
BlogManager1 receive the topic of event by
eventAdmin->subscribeSlot
When sending a message from the second step to the third step, a timeout error is returned.
print result and error ['due to timeout']:
BlogEventHandlerActivator::start
BlogEventHandlerActivator::start
BlogEventHandlerActivator::start
BlogManagerActivator::start
BlogManagerActivator::start
BlogEventHandler start ...
BlogManager start ...
BlogManager1 start ...
·***************
BlackList Value Is Empty!!!
BlogManager::publishBlog
start run: 0x526c
QFuture run: 0x4984
BlogEventHandler::handleEvent 1
EventHandler received : title: "CTK Event Admin7771" 0x2624
run over!
10 10 18:10:33 2023 Warning: Blacklisting ServiceReference [1 | Plugin(org.commontk.eventadmin)] due to timeout!
in ctkEABlacklistingHandlerTasks<class ctkEACleanBlackList,class ctkEACacheTopicHandlerFilters<class ctkEALeastRecentlyUsedCacheMap<class QString,class QString> >,class ctkEACacheFilters<class ctkEALeastRecentlyUsedCacheMap<class QString,class ctkLDAPSearchFilter> > >::blackListRef, E:\CodeDevelopment\CTK\CTK-master\Plugins\org.commontk.eventadmin\handler\ctkEABlacklistingHandlerTasks.tpp:104
BlogEventHandler::handleEvent737
EventHandler received777 : title: "blog.title" content: "blog.content" 0x490c
I want to use synchronization to achieve this. Is there any other solution?
plugin --BlogEventHandler code:
blog_even_thandler_activator.h:
blog_even_thandler_activator.cpp
blog_event_handler.h
plugin --BlogManager code:
blog_manager.h
blog_manager.cpp
blog_manager_activator.h
blog_manager_activator.cpp
plugin --BlogManager1 code:
blog_manager.h
blog_manager.cpp
blog_manager_activator.h
blog_manager_activator.cpp
test program
main.cpp
The text was updated successfully, but these errors were encountered: