Changeset 1f2b07a in mainline for uspace/lib/c/include/inet/udp.h


Ignore:
Timestamp:
2015-06-08T22:00:22Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dc0d6e5d
Parents:
204ba47
Message:

TCP and UDP client code needs to make sure callback connection handler has terminated before freeing session-related data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/inet/udp.h

    r204ba47 r1f2b07a  
    3737
    3838#include <async.h>
     39#include <fibril_synch.h>
    3940#include <inet/addr.h>
    4041#include <inet/endpoint.h>
    4142#include <inet/inet.h>
     43#include <stdbool.h>
    4244
    4345/** UDP link state */
     
    8183        /** List of associations */
    8284        list_t assoc; /* of udp_assoc_t */
     85        /** UDP service lock */
     86        fibril_mutex_t lock;
     87        /** For waiting on cb_done */
     88        fibril_condvar_t cv;
     89        /** Set to @a true when callback connection handler has terminated */
     90        bool cb_done;
    8391} udp_t;
    8492
Note: See TracChangeset for help on using the changeset viewer.