Results 1 to 2 of 2

Thread: signals & threads

  1. #1
    Serf
    Join Date
    Apr 2008
    Posts
    1

    Default signals & threads

    Hello!

    I am trying to figure out how to do inter-thread communication simple. Can I emit a signal in one thread and let another thread create a slot (and connect to the signal) and receive the signal?

    Thank you in advance for your help,
    wamma

  2. #2
    Master Sorcerer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    That will only work if you guard the signal with a CL_Mutex and lock it when you connect slots, disconnect slots or invoke the signal.

Similar Threads

  1. Setup networking in multiple threads?
    By catch22 in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 07-17-2007, 11:55 PM
  2. Threads
    By catch22 in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 06-30-2007, 04:54 PM
  3. Connect to signals
    By void_kill in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 04-11-2007, 02:23 PM

Bookmarks

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
  •