aboutsummaryrefslogtreecommitdiffstats
path: root/tests/it_q/it_q_test.ok
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-08-06 19:56:16 +0200
committerHarald Welte <laforge@osmocom.org>2021-01-06 00:22:13 +0100
commite4cd267ab18f2d9d66351cce5b5a1aa8cc893c51 (patch)
tree55051be67c00075cca55bc06b597f3c02a5ea414 /tests/it_q/it_q_test.ok
parent463dca0b9c57f080e8c3c96ad86deca3a6c48424 (diff)
Add inter-thread queue
This adds an inter-thread queue "it_q" to libosmocore. With it_q, one can perform thread-safe enqueing of messages to another thread, who will receive the related messages triggered via an eventfd handled in the usual libosmocore select loop abstraction. Change-Id: Ie7d0c5fec715a2a577fae014b0b8a0e9c38418ef
Diffstat (limited to 'tests/it_q/it_q_test.ok')
-rw-r--r--tests/it_q/it_q_test.ok15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/it_q/it_q_test.ok b/tests/it_q/it_q_test.ok
new file mode 100644
index 00000000..7f102c61
--- /dev/null
+++ b/tests/it_q/it_q_test.ok
@@ -0,0 +1,15 @@
+
+== Entering test case tc_alloc
+allocating q1
+attempting duplicate allocation of qa
+re-allocating q1
+
+== Entering test case tc_queue_length
+allocating q1
+adding queue entries up to the limit
+attempting to add more than the limit
+
+== Entering test case tc_eventfd
+allocating q1
+adding 30 queue entries up to the limit
+30 entries were dequeued