summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/release/lwip_helper_files/lwip/arch/queue.h
blob: 238ef0565f4cfc84bdea7899f2984426c3820253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef __QUEUE_H__
#define __QUEUE_H__
#ifdef __cplusplus
extern "C"
{

#endif
#include "common_mem_base_type.h"
#ifdef HAL_LIB
#else
#include "rte_ring.h"
#endif
#include "nsfw_mem_api.h"
//#include "stackx_dfx_api.h"

#include "sys.h"

  typedef struct queue
  {
    PRIMARY_ADDR mring_handle llring;
  } queue_t;

  err_t queue_push (queue_t * q, void *msg, int isTrypush);
  void *queue_pop (queue_t * q, u32_t * timeout, int isTryPop);

#ifdef __cplusplus

}
#endif
#endif