aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/conn.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-03-26 16:05:01 -0400
committerDeterminant <ted.sybil@gmail.com>2019-03-26 16:05:01 -0400
commita4015bde81371a8b998361ccfb56d5fd714e3ec6 (patch)
tree50ce32f6779fdf22c7e2556c6be5a550283cfb60 /include/salticidae/conn.h
parentea6ae75fccad52d116559f320d6f0069c1ad552b (diff)
update atomic fences
Diffstat (limited to 'include/salticidae/conn.h')
-rw-r--r--include/salticidae/conn.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index e7d6295..cc1c5a6 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -188,7 +188,6 @@ class ConnPool {
void feed(const conn_t &conn, int client_fd) {
/* the caller should finalize all the preparation */
- std::atomic_thread_fence(std::memory_order_release);
tcall.async_call([this, conn, client_fd](ThreadCall::Handle &) {
if (conn->mode == Conn::ConnMode::DEAD)
{
@@ -381,7 +380,6 @@ class ConnPool {
auto ret = *(static_cast<conn_t *>(disp_tcall->call(
[this, addr](ThreadCall::Handle &h) {
auto conn = _connect(addr);
- std::atomic_thread_fence(std::memory_order_release);
h.set_result(std::move(conn));
}).get()));
return std::move(ret);