CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: stolencoin

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    14,083

    Re: Mutual exclusion strategy

    1) I'm not asking how to block if the buffer is full. I'm saying that I can think of two ways to communicate with the producer thread. a) If Producer_fn returns buffer-full, then the producer thread...
  2. Replies
    15
    Views
    14,083

    Re: Mutual exclusion strategy

    Thanks for all the input. I've already stated that I was in favor of using events instead of polling, no argument there. But please consider the following code:

    CONSUMER_FN()
    {
    Loop...
  3. Replies
    15
    Views
    14,083

    Re: Mutual exclusion strategy

    *sigh* I wish people showed this much interest to my intellisense thread ;)

    I'm not trying to prevent the same thread entering the critical section recursively. I know it was designed that way....
  4. Replies
    15
    Views
    14,083

    Re: Mutual exclusion strategy

    Thanks Codeplug, I guess you want to tell me that I should look closer or deeper inside my code to get to the bottom of this, and you are probably right. Maybe I'm not polling frequent enough to see...
  5. Replies
    15
    Views
    14,083

    Re: Mutual exclusion strategy

    Thanks Arjay, your idea might have worked but rereading my own post I've seen that I might have mislead you, or any other members who have read my post. My apologies.

    The function I export is not...
  6. Replies
    15
    Views
    14,083

    Mutual exclusion strategy

    Hi all

    For practical purposes I can say that my program has a producer thread and a consumer thread. The producer thread writes data to a circular buffer, and the consumer thread reads data from...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured