Changeset 1542
- Timestamp:
- Aug 13, 2004, 3:48:45 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
collections/psList.c (modified) (4 diffs)
-
types/psList.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psList.c
r1440 r1542 7 7 * @author Robert Daniel DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-08- 09 23:34:57$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-08-14 01:48:45 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 196 196 if (which == PS_LIST_UNKNOWN) { 197 197 psError(__func__, "Failed to find item in given psList."); 198 pthread_mutex_unlock(&list->lock) 199 ; 198 200 return false; 199 201 } … … 206 208 if (elem == NULL) { 207 209 psError(__func__, "Couldn't position to given index (%d) to remove element from list.", which); 210 pthread_mutex_unlock(&list->lock) 211 ; 208 212 return false; 209 213 } … … 270 274 if (where >= (int)list->size) { 271 275 list->iter = NULL; 276 if (lockList) { 277 pthread_mutex_unlock(&list->lock) 278 ; 279 } 272 280 return; 273 281 } -
trunk/psLib/src/types/psList.c
r1440 r1542 7 7 * @author Robert Daniel DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-08- 09 23:34:57$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-08-14 01:48:45 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 196 196 if (which == PS_LIST_UNKNOWN) { 197 197 psError(__func__, "Failed to find item in given psList."); 198 pthread_mutex_unlock(&list->lock) 199 ; 198 200 return false; 199 201 } … … 206 208 if (elem == NULL) { 207 209 psError(__func__, "Couldn't position to given index (%d) to remove element from list.", which); 210 pthread_mutex_unlock(&list->lock) 211 ; 208 212 return false; 209 213 } … … 270 274 if (where >= (int)list->size) { 271 275 list->iter = NULL; 276 if (lockList) { 277 pthread_mutex_unlock(&list->lock) 278 ; 279 } 272 280 return; 273 281 }
Note:
See TracChangeset
for help on using the changeset viewer.
