diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-09-10 16:00:43 +0300 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-31 12:20:59 +0100 |
commit | 3839a88ea681024752048c902b23144c42f4fa42 (patch) | |
tree | bcffa10e18bdcbd97007ed670d78e5798134abc8 /include/osmocom/gapk/procqueue.h | |
parent | 459791c488c6b66a5cd0d7cff9392a7a0b8ca733 (diff) |
procqueue: separate queue check function
In order to give advanced control over a processing queue,
it would be better to have the checking function separated from
the osmo_gapk_pq_prepare(). Moreover, this change introduces an
additional 'strict' checking mode that requires a queue to have
a source item first and a sink item in the last position.
Diffstat (limited to 'include/osmocom/gapk/procqueue.h')
-rw-r--r-- | include/osmocom/gapk/procqueue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gapk/procqueue.h b/include/osmocom/gapk/procqueue.h index c2f2675..e73f73e 100644 --- a/include/osmocom/gapk/procqueue.h +++ b/include/osmocom/gapk/procqueue.h @@ -71,6 +71,7 @@ struct osmo_gapk_pq { /* Processing queue management */ struct osmo_gapk_pq *osmo_gapk_pq_create(const char *name); +int osmo_gapk_pq_check(struct osmo_gapk_pq *pq, int strict); int osmo_gapk_pq_prepare(struct osmo_gapk_pq *pq); int osmo_gapk_pq_execute(struct osmo_gapk_pq *pq); void osmo_gapk_pq_destroy(struct osmo_gapk_pq *pq); |