class MutexModel |
|
\class MutexModel mutexmodel.h Soprano/Util/MutexModel
Protect a Model for multiple calls in multi-threaded applications. In most cases one does not need to use this FilterModel since Models created by Soprano.createModel and Soprano.Backend.createModel are thread-safe. It may, however, come in handy for custom models.
Author Sebastian Trueg |
|
Create a new MutexModel.
mode - The mode to use. parent - The parent Model to forward the actual calls to. |
|
|
|
|
|
|
|
|
|
|
In PlainMultiThreading mode only one action can be performed at the same time. Calls block until the previous call is done.
In this mode nesting iterators will result in a deadlock.
PlainMultiThreading | - | - | ||
ReadWriteMultiThreading | - | - | ||
ReadWriteSingleThreading | - | - |