1
1
This commit was SVN r28647.
Этот коммит содержится в:
George Bosilca 2013-06-15 16:23:11 +00:00
родитель a6c3477e89
Коммит f5a55ccb39
2 изменённых файлов: 3 добавлений и 19 удалений

Просмотреть файл

@ -878,22 +878,6 @@ static inline void opal_list_insert_pos(opal_list_t *list, opal_list_item_t *pos
* The important thing to realize here is that a and b will be \em
* double pointers to the items that you need to compare. Here's
* a sample compare function to illustrate this point:
*
* \verb
* static int compare(opal_list_item_t **a, opal_list_item_t **b)
* {
* orte_pls_base_cmp_t *aa = *((orte_pls_base_cmp_t **) a);
* orte_pls_base_cmp_t *bb = *((orte_pls_base_cmp_t **) b);
*
* if (bb->priority > aa->priority) {
* return 1;
* } else if (bb->priority == aa->priority) {
* return 0;
* } else {
* return -1;
* }
* }
* \endverb
*/
typedef int (*opal_list_item_compare_fn_t)(opal_list_item_t **a,
opal_list_item_t **b);

Просмотреть файл

@ -68,9 +68,9 @@ static inline int opal_condition_wait(opal_condition_t *c, opal_mutex_t *m)
c->c_waiting++;
#if OPAL_ENABLE_DEBUG && !OPAL_ENABLE_MULTI_THREADS
if (opal_mutex_check_locks && 0 == m->m_lock_debug) { \
opal_output(0, "Warning -- mutex not locked in condition_wait"); \
} \
if (opal_mutex_check_locks && 0 == m->m_lock_debug) {
opal_output(0, "Warning -- mutex not locked in condition_wait");
}
m->m_lock_debug--;
#endif