From 45e00aca28504b27f3ad6b4abf364c3d57f34510 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 22 二月 2021 14:05:28 +0800
Subject: [PATCH] lock free queue
---
doc/lock_free_queue_paper/Simple, Fast, and Practical Non-Blocking and Blocking.pdf | 0
doc/lock_free_queue_paper/Implementing Lock-Free Queues.pdf | 0
src/socket/shm_socket.cpp | 2 +-
3 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/doc/lock_free_queue_paper/Implementing Lock-Free Queues.pdf b/doc/lock_free_queue_paper/Implementing Lock-Free Queues.pdf
new file mode 100755
index 0000000..ccae8a2
--- /dev/null
+++ b/doc/lock_free_queue_paper/Implementing Lock-Free Queues.pdf
Binary files differ
diff --git a/doc/lock_free_queue_paper/Simple, Fast, and Practical Non-Blocking and Blocking.pdf b/doc/lock_free_queue_paper/Simple, Fast, and Practical Non-Blocking and Blocking.pdf
new file mode 100644
index 0000000..f25e792
--- /dev/null
+++ b/doc/lock_free_queue_paper/Simple, Fast, and Practical Non-Blocking and Blocking.pdf
Binary files differ
diff --git a/src/socket/shm_socket.cpp b/src/socket/shm_socket.cpp
index bc2ffb9..7e33cc6 100644
--- a/src/socket/shm_socket.cpp
+++ b/src/socket/shm_socket.cpp
@@ -322,7 +322,7 @@
const int send_size, const int key, void **recv_buf,
int *recv_size, const struct timespec *timeout, int flags) {
- int rv, tryn = 3;
+ int rv, tryn = 6;
shm_packet_t sendpak;
shm_packet_t recvpak;
std::map<std::string, shm_packet_t>::iterator recvbufIter;
--
Gitblit v1.8.0