Search:

Type: Posts; User: CornedBee

Search: Search took 0.06 seconds.

  1. Depends on the strategy that the mutex employs....

    Depends on the strategy that the mutex employs. My memory is a bit hazy on this, but I remember three general strategies:
    1) Fair. As long as only readers want to enter, they can do so immediately....
  2. It isn't. shared_mutex isn't just one normal...

    It isn't. shared_mutex isn't just one normal mutex, it's a special class that supports shared ownership. If you want to know how it is implemented internally, you should check the source. There will...
  3. What part don't you get? Any number of threads...

    What part don't you get? Any number of threads can enter getValue() at the same time, but if any thread calls setValue(), no thread may be in getValue() or setValue() at the same time.
Results 1 to 3 of 3