]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Add thread safety to the new cache
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 9 Nov 2024 01:00:05 +0000 (19:00 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 9 Nov 2024 01:02:20 +0000 (19:02 -0600)
commitf5a047258dddb8b99d2db102a686e343cace17b2
tree6202e74c67d4933e72f7e6d8cf8f8301b2ef050a
parent9775cea735cbe61a0e68c16c2dcdddd793a12099
Add thread safety to the new cache

The thread that handles the first task that needs repository A
refreshes A.

While the refresh happens, threads handling other tasks that also need
A postpone said tasks.

Such postponed tasks wake up when the refresh completes.
src/cache.c
src/cache.h
src/common.c
src/object/certificate.c
src/object/tal.c
src/rrdp.c
src/rrdp.h
src/task.c
src/task.h
test/cache_test.c
test/task_test.c