diff options
| author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-31 15:58:12 +0200 | 
|---|---|---|
| committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-31 16:01:47 +0200 | 
| commit | b47ca8de07c11bfddf3e8ecb2fd227049c512b9a (patch) | |
| tree | 9623d6a0e94f327151a537485110442809dda9ca /src/irmd/irm_flow.h | |
| parent | e39e93447d8da3bf06b8f5aecd3daf41c0451f81 (diff) | |
| download | ouroboros-b47ca8de07c11bfddf3e8ecb2fd227049c512b9a.tar.gz ouroboros-b47ca8de07c11bfddf3e8ecb2fd227049c512b9a.zip | |
irmd: Keep track of qos in irm_flow
This fixes the bug in handling multiple concurrent flow allocations.
Diffstat (limited to 'src/irmd/irm_flow.h')
| -rw-r--r-- | src/irmd/irm_flow.h | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/src/irmd/irm_flow.h b/src/irmd/irm_flow.h index 9a439204..97770117 100644 --- a/src/irmd/irm_flow.h +++ b/src/irmd/irm_flow.h @@ -25,6 +25,7 @@  #include <ouroboros/list.h>  #include <ouroboros/shm_rbuff.h> +#include <ouroboros/shared.h>  #include <sys/types.h>  #include <pthread.h> @@ -42,6 +43,7 @@ struct irm_flow {          struct list_head   next;          int                port_id; +        qoscube_t          qc;          pid_t              n_api;          pid_t              n_1_api; @@ -56,9 +58,10 @@ struct irm_flow {          pthread_mutex_t    state_lock;  }; -struct irm_flow * irm_flow_create(pid_t n_api, -                                  pid_t n_1_api, -                                  int   port_id); +struct irm_flow * irm_flow_create(pid_t     n_api, +                                  pid_t     n_1_api, +                                  int       port_id, +                                  qoscube_t qc);  void              irm_flow_destroy(struct irm_flow * f); | 
