summaryrefslogtreecommitdiffstats
path: root/src/svm.am
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-07-04 04:17:41 -0700
committerMarco Varlese <marco.varlese@suse.de>2018-07-06 08:40:18 +0000
commit65784c1602c7c8171effd00384f65f546d93a13b (patch)
treee649a73d3420d1df96e40d0087be6e5d1fbf1f57 /src/svm.am
parent01a771b12198b3f07d67a4bc73650c1f65257708 (diff)
svm: add unidirectional message queue
Meant for single reader/writer message exchanges. Supports multiple message rings. Change-Id: I925de9a6ae19226c5c39a63caff76424ed123a13 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm.am')
-rw-r--r--src/svm.am19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/svm.am b/src/svm.am
index c29072e4f52..7413e672bce 100644
--- a/src/svm.am
+++ b/src/svm.am
@@ -13,13 +13,14 @@
bin_PROGRAMS += svmtool svmdbtool
-nobase_include_HEADERS += \
+nobase_include_HEADERS += \
svm/ssvm.h \
svm/svm_common.h \
svm/svmdb.h \
svm/svm_fifo.h \
- svm/svm_fifo_segment.h \
+ svm/svm_fifo_segment.h \
svm/queue.h \
+ svm/message_queue.h \
svm/svm.h
lib_LTLIBRARIES += libsvm.la libsvmdb.la
@@ -28,8 +29,9 @@ libsvm_la_SOURCES = \
svm/svm.c \
svm/ssvm.c \
svm/svm_fifo.c \
- svm/svm_fifo_segment.c \
- svm/queue.c
+ svm/svm_fifo_segment.c \
+ svm/queue.c \
+ svm/message_queue.c
libsvm_la_LIBADD = libvppinfra.la -lrt -lpthread
libsvm_la_DEPENDENCIES = libvppinfra.la
@@ -44,9 +46,16 @@ libsvmdb_la_SOURCES = svm/svmdb.c
svmdbtool_SOURCES = svm/svmdbtool.c
svmdbtool_LDADD = libsvmdb.la libsvm.la libvppinfra.la -lpthread -lrt
-noinst_PROGRAMS += test_svm_fifo1
+noinst_PROGRAMS += \
+ test_svm_fifo1 \
+ test_svm_message_queue
+
test_svm_fifo1_SOURCES = svm/test_svm_fifo1.c
test_svm_fifo1_LDADD = libsvm.la libvppinfra.la -lpthread -lrt
test_svm_fifo1_LDFLAGS = -static
+test_svm_message_queue_SOURCES = svm/test_svm_message_queue.c
+test_svm_message_queue_LDADD = libsvm.la libvppinfra.la -lpthread -lrt
+test_svm_message_queue_LDFLAGS = -static
+
# vi:syntax=automake