Results 1 to 10 of 10

Thread: Publish Subscriber Pattern in Qt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    66
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Publish Subscriber Pattern in Qt

    Hi,

    I have a publisher thread and a few subscriber threads.
    The number of subscribers changes at runtime.

    In my current implemenation the publisher creates the subscriber threads...this is maybe not the best way...

    I need a example how to implement this pattern with Qt.

    Hope you can help me..

    Edit:

    The informtion which needs to be delivered is most of the the time received just by one subscriber. But in case of a "broadcast" every subscribers will receive it.

    Where is the difference between the Observer pattern and the publish/subscriber .
    http://msdn.microsoft.com/en-us/library/ms978603.aspx
    Last edited by donglebob; 3rd February 2009 at 08:27.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.