Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fw/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,16 @@ tfw_connection_live(TfwConn *conn)

#define tfw_srv_conn_live(c) tfw_connection_live((TfwConn *)(c))

static inline void
tfw_connection_get_many(TfwConn *conn, int cnt)
{
atomic_add(cnt, &conn->refcnt);
}

static inline void
tfw_connection_get(TfwConn *conn)
{
atomic_inc(&conn->refcnt);
tfw_connection_get_many(conn, 1);
}

#define TFW_CONNETION_GET_IF(name, cond) \
Expand Down
Loading