aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/conn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index 2dab517..777c480 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -187,6 +187,8 @@ 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)
{