Changeset 0edaf0f6 in mainline for uspace/srv/net/tl/tcp/tcp_type.h


Ignore:
Timestamp:
2011-12-16T18:04:30Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab9378b4
Parents:
7a8c1c4e
Message:

Revamp connection synchronization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/tcp_type.h

    r7a8c1c4e r0edaf0f6  
    162162        acpass_t ap;
    163163
     164        /** Protects access to connection structure */
     165        fibril_mutex_t lock;
     166        /** Reference count */
     167        atomic_t refcnt;
     168
    164169        /** Connection state */
    165170        tcp_cstate_t cstate;
     
    168173        /** True if connection was deleted by user */
    169174        bool deleted;
    170         /** Protects @c cstate */
    171         fibril_mutex_t cstate_lock;
    172175        /** Signalled when @c cstate changes */
    173176        fibril_condvar_t cstate_cv;
     
    193196        /** Receive buffer contains FIN */
    194197        bool rcv_buf_fin;
    195         /** Receive buffer lock */
    196         fibril_mutex_t rcv_buf_lock;
    197198        /** Receive buffer CV. Broadcast when new data is inserted */
    198199        fibril_condvar_t rcv_buf_cv;
     
    206207        /** Send buffer contains FIN */
    207208        bool snd_buf_fin;
    208         /** Send buffer lock */
    209         fibril_mutex_t snd_buf_lock;
    210209        /** Send buffer CV. Broadcast when space is made available in buffer */
    211210        fibril_condvar_t snd_buf_cv;
Note: See TracChangeset for help on using the changeset viewer.