vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Alias TaskReadWriteMutex.Policy

The policy with which the mutex should operate.

class TaskReadWriteMutex
  // ...
  alias Policy = vibe.core.sync.ReadWriteMutexState!(false);
  // ...

The policy determines how the acquisition of the locks is performed and can be used to tune the mutex according to the underlying algorithm in which it is used.

According to the provided policy, the mutex will either favor reading or writing tasks and could potentially starve the respective opposite.

cf. core.sync.rwmutex.ReadWriteMutex.Policy


Leonid Kramer, Sönke Ludwig, Manuel Frischknecht


© 2012-2019 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.