Add a "name" field to the condition wait object to help with debugging
This commit was SVN r24087.
Этот коммит содержится в:
родитель
4209d531dc
Коммит
aa467162da
@ -28,6 +28,7 @@ static void opal_condition_construct(opal_condition_t *c)
|
||||
#if OPAL_HAVE_POSIX_THREADS
|
||||
pthread_cond_init(&c->c_cond, NULL);
|
||||
#endif
|
||||
c->name = NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +37,9 @@ static void opal_condition_destruct(opal_condition_t *c)
|
||||
#if OPAL_HAVE_POSIX_THREADS
|
||||
pthread_cond_destroy(&c->c_cond);
|
||||
#endif
|
||||
if (NULL != c->name) {
|
||||
free(c->name);
|
||||
}
|
||||
}
|
||||
|
||||
OBJ_CLASS_INSTANCE(opal_condition_t,
|
||||
|
@ -55,6 +55,7 @@ struct opal_condition_t {
|
||||
#elif OPAL_HAVE_SOLARIS_THREADS
|
||||
cond_t c_cond;
|
||||
#endif
|
||||
char *name;
|
||||
};
|
||||
typedef struct opal_condition_t opal_condition_t;
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user