Skip to content

Commit a1f4763

Browse files
committed
a bit more PR feedback
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 317d11f commit a1f4763

File tree

5 files changed

+12
-35
lines changed

5 files changed

+12
-35
lines changed

opal/mca/pmix/base/base.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ OPAL_DECLSPEC int opal_pmix_base_exchange(pmix_info_t *info,
3737
pmix_pdata_t *pdat,
3838
int timeout);
3939

40-
#define opal_pmix_condition_signal(a) opal_cond_signal(a)
41-
4240
typedef struct {
4341
opal_event_base_t *evbase;
4442
int timeout;

opal/mca/threads/Makefile.am

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# University of Stuttgart. All rights reserved.
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
12-
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
12+
# Copyright (c) 2010-2020 Cisco Systems, Inc. All rights reserved
1313
# Copyright (c) 2019 Sandia National Laboratories. All rights reserved.
1414
# $COPYRIGHT$
1515
#
@@ -23,7 +23,14 @@ noinst_LTLIBRARIES = libmca_threads.la
2323
libmca_threads_la_SOURCES =
2424

2525
# local files
26-
headers = threads.h
26+
headers = \
27+
condition.h \
28+
mutex.h \
29+
thread.h \
30+
threads.h \
31+
thread_usage.h \
32+
tsd.h \
33+
wait_sync.h
2734
nodist_headers =
2835
libmca_threads_la_SOURCES += $(headers)
2936

opal/mca/threads/qthreads/threads_qthreads_condition.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ static void opal_condition_construct(opal_condition_t *c)
3535
}
3636

3737

38-
static void opal_condition_destruct(opal_condition_t *c)
39-
{
40-
}
4138

4239
OBJ_CLASS_INSTANCE(opal_condition_t,
4340
opal_object_t,
4441
opal_condition_construct,
45-
opal_condition_destruct);
42+
NULL);

opal/mca/threads/qthreads/threads_qthreads_mutex.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,45 +114,20 @@ static inline int opal_mutex_trylock(opal_mutex_t *m)
114114
{
115115
ensure_init_qthreads();
116116

117-
#if OPAL_ENABLE_DEBUG
118-
int ret = qthread_readFE_nb(NULL, &m->m_lock_qthreads);
119-
if (ret != 0) {
120-
errno = ret;
121-
opal_output(0, "opal_mutex_trylock() %d", ret);
122-
}
123-
return ret;
124-
#else
125117
return qthread_readFE_nb(NULL, &m->m_lock_qthreads);
126-
#endif
127118
}
128119

129120
static inline void opal_mutex_lock(opal_mutex_t *m)
130121
{
131122
ensure_init_qthreads();
132-
#if OPAL_ENABLE_DEBUG
133-
int ret = qthread_lock(&m->m_lock_qthreads);
134-
if (ret != 0) {
135-
errno = ret;
136-
opal_output(0, "opal_mutex_lock() %d", ret);
137-
}
138-
#else
139123
qthread_lock(&m->m_lock_qthreads);
140-
#endif
141124
}
142125

143126
static inline void opal_mutex_unlock(opal_mutex_t *m)
144127
{
145128
ensure_init_qthreads();
146129

147-
#if OPAL_ENABLE_DEBUG
148-
int ret = qthread_unlock(&m->m_lock_qthreads);
149-
if (ret != 0) {
150-
errno = ret;
151-
opal_output(0, "opal_mutex_unlock() %d", ret);
152-
}
153-
#else
154130
qthread_unlock(&m->m_lock_qthreads);
155-
#endif
156131
/* For fairness of locking. */
157132
qthread_yield();
158133
}

opal/runtime/opal_params.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* All rights reserved.
1313
* Copyright (c) 2006 Los Alamos National Security, LLC. All rights
1414
* reserved.
15-
* Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
15+
* Copyright (c) 2008-2020 Cisco Systems, Inc. All rights reserved
1616
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
1717
* Copyright (c) 2010-2014 Los Alamos National Security, LLC.
1818
* All rights reserved.
@@ -62,7 +62,7 @@ bool opal_timing_overhead = true;
6262
#endif
6363

6464
#if OPAL_ENABLE_DEBUG
65-
bool opal_debug_threads;
65+
bool opal_debug_threads = false;
6666
#endif
6767

6868
bool opal_built_with_cuda_support = OPAL_INT_TO_BOOL(OPAL_CUDA_SUPPORT);

0 commit comments

Comments
 (0)