CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Sep 2008
    Posts
    93

    assignment of value by thread problem

    Hi @ all,

    In a thread I´m receiving messages from socket.
    If a specific message is income I´m setting a boolean to true.
    In a method of my main process I have an endless loop which
    has to end if the variable in thread is set to true.

    The problem is it needs about 4 to 5 seconds from setting the value to true and
    that the method will notice it.

    What can I do that the method ends immediatly if the needed message is coming in?

    Best regards
    CrazyPlaya

    P.S.: I forget to say the application is running as a service in Windows.
    Last edited by CrazyPlaya; March 25th, 2010 at 02:49 AM.

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