diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-07-04 00:55:48 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-07-11 23:41:24 +0200 |
commit | 1b76c38904f0033ac1403ec4b31c28f23805c0d4 (patch) | |
tree | 836d54662c91bc088e4860712c02d83ac0117b9b /lib/urldata.h | |
parent | d6417f6c2ddb10099da2c7ad0ffeebaa732aa824 (diff) | |
download | curl-1b76c38904f0033ac1403ec4b31c28f23805c0d4.tar.gz |
conn: remove the boolean 'inuse' field
... as the usage needs to be counted.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 666981c38..07eb48869 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -781,11 +781,12 @@ struct connectdata { curl_closesocket_callback fclosesocket; /* function closing the socket(s) */ void *closesocket_client; - bool inuse; /* This is a marker for the connection cache logic. If this is - TRUE this handle is being used by one or more easy handles - and can only used by any other easy handle without careful - consideration (== only for pipelining/multiplexing) and it - cannot be used by another multi handle! */ + /* This is used by the connection cache logic. If this returns TRUE, this + handle is being used by one or more easy handles and can only used by any + other easy handle without careful consideration (== only for + pipelining/multiplexing) and it cannot be used by another multi + handle! */ +#define CONN_INUSE(c) ((c)->send_pipe.size || (c)->recv_pipe.size) /**** Fields set when inited and not modified again */ long connection_id; /* Contains a unique number to make it easier to |