Skip to content

Commit

Permalink
#1173: fix codacy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 3, 2021
1 parent cf5ec1a commit 04eee3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vt/vrt/context/context_vrtinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ bool VirtualInfo::enqueueWorkUnit(VirtualMessage* raw_msg) {

bool const has_workers = theContext()->hasWorkers();

if (has_workers and vt_threading_enabled) {
if (has_workers) {
#if vt_threading_enabled
bool const execute_comm = msg->getExecuteCommThread();
if (hasCoreMap() && !execute_comm) {
Expand All @@ -120,6 +120,8 @@ bool VirtualInfo::enqueueWorkUnit(VirtualMessage* raw_msg) {
} else {
theWorkerGrp()->enqueueCommThread(work_unit);
}
#else
work_unit();
#endif
return true;
} else {
Expand Down

0 comments on commit 04eee3c

Please sign in to comment.