Refactor the work queue

Make a separate work queue to track async operations. Keep separate
work queues for links and nodes. This avoids lockups when some async
operation take a long time and the work queue has SYNC_WAIT operations.
This commit is contained in:
Wim Taymans 2017-01-12 16:48:17 +01:00
parent 6d4db64767
commit 474981ddda
9 changed files with 344 additions and 238 deletions

View file

@ -12,6 +12,7 @@ pinoscore_headers = [
'node-factory.h',
'port.h',
'resource.h',
'work-queue.h',
]
pinoscore_sources = [
@ -28,6 +29,7 @@ pinoscore_sources = [
'node-factory.c',
'port.c',
'resource.c',
'work-queue.c',
]
libpinoscore_c_args = [