From 9ec682d52cf8545230cfc37f1799db4f80334a84 Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Sun, 5 Jan 2025 22:03:04 +0100 Subject: [PATCH] Use of WITH_OPENMP --- .cproject | 3 +++ src/redisx-cluster.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.cproject b/.cproject index 6d12407..1e2acbd 100644 --- a/.cproject +++ b/.cproject @@ -22,6 +22,9 @@ + diff --git a/src/redisx-cluster.c b/src/redisx-cluster.c index 35e8adf..4831fa4 100644 --- a/src/redisx-cluster.c +++ b/src/redisx-cluster.c @@ -510,7 +510,7 @@ int redisxClusterConnect(RedisCluster *cluster) { pthread_mutex_lock(&p->mutex); -#if WITH_OMP +#if WITH_OPENMP # pragma omp parallel for #endif for(i = 0; i < p->n_shards; i++) { @@ -554,7 +554,7 @@ int redisxClusterDisconnect(RedisCluster *cluster) { pthread_mutex_lock(&p->mutex); -#if WITH_OMP +#if WITH_OPENMP # pragma omp parallel for #endif for(i = 0; i < p->n_shards; i++) {