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

Search:

Type: Posts; User: dvyukov

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    66,532

    Re: Managing an array shared by multiple threads?

    There is not best way for that, because the idea is busted in itself.
    What is the best way to manage 100 programmers to work on a single computer? Sorry, you just need more computers.
  2. Replies
    9
    Views
    66,532

    Re: Managing an array shared by multiple threads?

    Yeah, until your own locking mechanism does not outperform those "perfectly good locks" by several orders of magnitude.
  3. Replies
    9
    Views
    66,532

    Re: Managing an array shared by multiple threads?

    mrgr8avill, you need something along the lines of:



    class request_queue
    {
    public:
    void enqueue(request* req)
    {
    bool notify = false;
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured