]> git.proxmox.com Git - mirror_lxcfs.git/commit
lxcfs: add fuse interruptible locks
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Wed, 12 Apr 2023 21:38:01 +0000 (23:38 +0200)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Mon, 17 Apr 2023 12:36:40 +0000 (14:36 +0200)
commit913c12e333bc3e6c24be6c5f13fe153bb7b3f958
tree9d427b368703f4e8523edb98e31c345d54f02c3f
parent3ea25890c18014af29f29022af58cae61ef860eb
lxcfs: add fuse interruptible locks

Adds a few helper functions which represents fuse interruptible
versions of a classical pthread locking primitives:
extern int mutex_lock_interruptible(pthread_mutex_t *l);
extern int rwlock_rdlock_interruptible(pthread_rwlock_t *l);
extern int rwlock_wrlock_interruptible(pthread_rwlock_t *l);

Does not change behavior.

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/bindings.c
src/bindings.h