]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Implement a thread pool, still pending to use at RTR clients
authorpcarana <pc.moreno2099@gmail.com>
Fri, 6 Nov 2020 01:49:43 +0000 (19:49 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 6 Nov 2020 01:49:43 +0000 (19:49 -0600)
commit5b80f4d54a8f5ecd9f931c63787fa517eca6fd87
tree470631e2fa2121e375662af0361cf859bed48fd0
parent98c112826f5253e7a604205067e5862e02a049da
Implement a thread pool, still pending to use at RTR clients

+The pool is basically a tasks queue, it's initialized using a fixed amount of threads (all of them spawned at pool creation) where each of them will be waiting for pending tasks to attend.
+TODO: the number of threads per pool must be configurable.
+TODO: right now only a pool is utilized at the TALs validation (and therefore the whole RPKI tree beneath them), at least another pool can be used to receive RTR clients.
12 files changed:
src/Makefile.am
src/object/tal.c
src/object/tal.h
src/rtr/db/vrps.c
src/thread/thread_pool.c [new file with mode: 0644]
src/thread/thread_pool.h [new file with mode: 0644]
test/Makefile.am
test/rtr/db/rtr_db_impersonator.c
test/rtr/db/vrps_test.c
test/rtr/pdu_handler_test.c
test/tal_test.c
test/thread_pool_test.c [new file with mode: 0644]