Index: /trunk/psLib/src/collections/psList.c
===================================================================
--- /trunk/psLib/src/collections/psList.c	(revision 3061)
+++ /trunk/psLib/src/collections/psList.c	(revision 3062)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-11 01:24:14 $
+ *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-19 20:49:35 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -161,4 +161,7 @@
     iter->offEnd = false;
 
+    pthread_mutex_lock(&list->lock)
+    ;
+
     // add to the list's array of iterators
     psArray* listIterators = list->iterators;
@@ -176,4 +179,7 @@
         iter = NULL;
     }
+
+    pthread_mutex_unlock(&list->lock)
+    ;
 
     return iter;
@@ -600,2 +606,3 @@
     return list;
 }
+
Index: /trunk/psLib/src/types/psList.c
===================================================================
--- /trunk/psLib/src/types/psList.c	(revision 3061)
+++ /trunk/psLib/src/types/psList.c	(revision 3062)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-11 01:24:14 $
+ *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-19 20:49:35 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -161,4 +161,7 @@
     iter->offEnd = false;
 
+    pthread_mutex_lock(&list->lock)
+    ;
+
     // add to the list's array of iterators
     psArray* listIterators = list->iterators;
@@ -176,4 +179,7 @@
         iter = NULL;
     }
+
+    pthread_mutex_unlock(&list->lock)
+    ;
 
     return iter;
@@ -600,2 +606,3 @@
     return list;
 }
+
