summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-09-02 15:04:19 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-09-02 15:04:19 +0200
commit10d74eef2851e032ee92c62907a7e8e6db230369 (patch)
tree5391bc92f4c3e614dbe1a1dfe908dbe6d3cccb13 /src/lib/dev.c
parentee2235c62cf0c51f7188fdeb6ac283c1e2ea0335 (diff)
parent4f44c91c68a3706e04334066f28471d56cc71849 (diff)
downloadouroboros-10d74eef2851e032ee92c62907a7e8e6db230369.tar.gz
ouroboros-10d74eef2851e032ee92c62907a7e8e6db230369.zip
Merged in dstaesse/ouroboros/be-split-fp (pull request #238)
lib: Add northbound ringbuffers
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 17c473ed..25c3fcd4 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -112,7 +112,7 @@ int ap_init(char * ap_name)
return -1;
}
- _ap_instance->rb = shm_ap_rbuff_create();
+ _ap_instance->rb = shm_ap_rbuff_create_s();
if (_ap_instance->rb == NULL) {
shm_rdrbuff_close(_ap_instance->rdrb);
bmp_destroy(_ap_instance->fds);
@@ -216,7 +216,7 @@ int flow_accept(char ** ae_name)
return -1;
}
- _ap_instance->flows[cfd].rb = shm_ap_rbuff_open(recv_msg->api);
+ _ap_instance->flows[cfd].rb = shm_ap_rbuff_open_n(recv_msg->api);
if (_ap_instance->flows[cfd].rb == NULL) {
bmp_release(_ap_instance->fds, cfd);
pthread_rwlock_unlock(&_ap_instance->flows_lock);
@@ -347,7 +347,7 @@ int flow_alloc(char * dst_name,
return -1;
}
- _ap_instance->flows[fd].rb = shm_ap_rbuff_open(recv_msg->api);
+ _ap_instance->flows[fd].rb = shm_ap_rbuff_open_n(recv_msg->api);
if (_ap_instance->flows[fd].rb == NULL) {
bmp_release(_ap_instance->fds, fd);
pthread_rwlock_unlock(&_ap_instance->flows_lock);