mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
spsc_q: fix call to spsc_q_alloc() in benchmark
Fixes: 4d67a6e513 ("spsc_q: make compile on older compilers")
Signed-off-by: Robert Schmidt <robert.schmidt@openairinterface.org>
This commit is contained in:
@@ -40,9 +40,9 @@ static void *consumer(void *arg)
|
|||||||
static void run_test(int range, int q_size)
|
static void run_test(int range, int q_size)
|
||||||
{
|
{
|
||||||
q_args_t args = {
|
q_args_t args = {
|
||||||
.q = spsc_q_alloc(q_size, sizeof(int)),
|
|
||||||
.range = range,
|
.range = range,
|
||||||
};
|
};
|
||||||
|
spsc_q_alloc(&args.q, q_size, sizeof(int));
|
||||||
|
|
||||||
pthread_t p, c;
|
pthread_t p, c;
|
||||||
int ret;
|
int ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user