IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3062


Ignore:
Timestamp:
Jan 19, 2005, 10:49:35 AM (22 years ago)
Author:
evanalst
Message:

Update locations of mutex locks/unlocks.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psList.c

    r2699 r3062  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-12-11 01:24:14 $
     8 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-01-19 20:49:35 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    161161    iter->offEnd = false;
    162162
     163    pthread_mutex_lock(&list->lock)
     164    ;
     165
    163166    // add to the list's array of iterators
    164167    psArray* listIterators = list->iterators;
     
    176179        iter = NULL;
    177180    }
     181
     182    pthread_mutex_unlock(&list->lock)
     183    ;
    178184
    179185    return iter;
     
    600606    return list;
    601607}
     608
  • trunk/psLib/src/types/psList.c

    r2699 r3062  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-12-11 01:24:14 $
     8 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-01-19 20:49:35 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    161161    iter->offEnd = false;
    162162
     163    pthread_mutex_lock(&list->lock)
     164    ;
     165
    163166    // add to the list's array of iterators
    164167    psArray* listIterators = list->iterators;
     
    176179        iter = NULL;
    177180    }
     181
     182    pthread_mutex_unlock(&list->lock)
     183    ;
    178184
    179185    return iter;
     
    600606    return list;
    601607}
     608
Note: See TracChangeset for help on using the changeset viewer.