]> git.itanic.dy.fi Git - rrdd/commit
process.c: Introduce work queues
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Fri, 8 Jul 2016 19:44:39 +0000 (22:44 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Fri, 8 Jul 2016 19:51:33 +0000 (22:51 +0300)
commit5f5e86612232a4056f34d67eb13fdac08b8dd2b4
tree2ab1f55c072094f3bb858e8b5ec2ccbf4ab5385a
parenta12fb50d7366155290a6c004916145f16e52127e
process.c: Introduce work queues

Work queues are a way to execute function calls asynchronously. Each
work is placed on a fifo queue where worker threads pick them up one
by one.

Priority levels are also supported, right now two levels are
available. All high priority works are executed before workers pick up
low priority works.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
process.c
process.h