CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Posts
    3

    help with threads

    How to notify main(GUI) thread from second thread ?
    Except Qt tools...
    Need boost or stl ways....

    Thanx.

  2. #2
    Join Date
    Jun 2009
    Posts
    65

    Re: help with threads

    You can use a callback function. Or PostMessage() in case of windows.

  3. #3
    Join Date
    Jul 2010
    Posts
    3

    Re: help with threads

    No windows - need cross-platform solution.
    In case with callback - how from second thread call it in main thread?

  4. #4
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,042

    Re: help with threads

    Quote Originally Posted by haccel View Post
    How to notify main(GUI) thread from second thread ?
    Except Qt tools...
    Need boost or stl ways....
    That depends on the GUI framework you are using, as that determines how your main thread is controlled.

    Neither boost nor STL has anything to do with GUI programming.
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

  5. #5
    Join Date
    Jul 2010
    Posts
    3

    Re: help with threads

    Quote Originally Posted by D_Drmmr View Post
    That depends on the GUI framework you are using, as that determines how your main thread is controlled.

    Neither boost nor STL has anything to do with GUI programming.
    The best answer ( i wrote my question on others forums , but it is right on target).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured