Skip to content

Commit

Permalink
Use of WITH_OPENMP
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 5, 2025
1 parent cc0a1c6 commit 9ec682d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .cproject
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<tool id="cdt.managedbuild.tool.gnu.archiver.base.1422446010" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.1815812035" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base"/>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.base.415530852" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base">
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.c.compiler.option.preprocessor.def.symbols.1140071425" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
<listOptionValue builtIn="false" value="WITH_OPENMP=1"/>
</option>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.81300143" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.linker.base.31299320" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base">
Expand Down
4 changes: 2 additions & 2 deletions src/redisx-cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -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++) {
Expand Down

0 comments on commit 9ec682d

Please sign in to comment.