vpi.Lock

class vpi.Lock

Set a lock mode for container access.

To access the content of a container, e.g. an image, the lock mode of the access must be provided. There are two ways of setting the lock mode:

  1. Define it as an argument to an access method, e.g. vpi.Container.lock();

  2. Define it by using a specific access method, e.g. vpi.Container.wlock().

Enumeration values

vpi.Lock.READ

Lock for read access.

vpi.Lock.WRITE

Lock for write access.

vpi.Lock.READ_WRITE

Lock for read-and-write access.