Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: John Ryan (john.p.ryan_at_[hidden])
Date: 2005-09-06 08:56:36


Hi,

trivial errors to report in the current trunk (7191)

file: ompi-trunk/ompi/mca/rcache/rb/rcache_rb_mru.c
lines: 75 & 85, arguments to the lock/unlock functions were incorrect
(i.e. each missing a '&' to the lock argument)

Congratulations on the fine work done by all!

Thanks,
John

   67 /*
    68 * touch an item in the mru list
    69 */
    70 int mca_rcache_base_mru_touch(
    71 mca_rcache_rb_module_t* rcache,
    72 mca_mpool_base_registration_t* reg
    73 ){
    74 int rc;
    75 OPAL_THREAD_LOCK(&rcache->rb_lock);
    76 if(NULL == opal_list_remove_item(
    77 &rcache->mru_list,
    78 (opal_list_item_t*) reg
    79 )) {
    80 rc = OMPI_ERROR;
    81 } else {
    82 opal_list_append(&rcache->mru_list, (opal_list_item_t*)
reg);
    83 rc = OMPI_SUCCESS;
    84 }
    85 OPAL_THREAD_UNLOCK(&rcache->rb_lock);
    86 return rc;
    87 }