Add thread safety documentation

This commit is contained in:
2025-08-19 17:20:36 -04:00
parent b8d735f074
commit b7282a2f03
6 changed files with 347 additions and 9 deletions

View File

@@ -391,7 +391,7 @@ void Server::start_accept_threads() {
perror("setsockopt SO_KEEPALIVE");
}
auto conn = std::make_unique<Connection>(
auto conn = Connection::createForServer(
addr, fd,
connection_id_.fetch_add(1, std::memory_order_relaxed),
&handler_, weak_from_this());