]> git.proxmox.com Git - pve-zsync.git/commit
Refactor locking
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 10 Oct 2019 09:55:14 +0000 (11:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 11 Oct 2019 09:51:16 +0000 (11:51 +0200)
commit96ed817693d5c58d68492fef9ecfd4cc4a5ee0f1
treee1eab254c2b1a2568278f8b3558b612f38dd9ab0
parentf1616f20eb9b36faee465a8d02825d5802af72b8
Refactor locking

This introduces a new locked() mechanism allowing to enclose locked
sections in a cleaner way. There's only two types of locks namely one
for state and cron (they are always read together and almost always
written together) and one for sync.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
pve-zsync