Reverted changed from 2005/01/24 19:14:54, which was a commit to the
[bpt/guile.git] / libguile / fports.c
index c79fdc8..9d8d1f4 100644 (file)
@@ -201,7 +201,7 @@ scm_evict_ports (int fd)
 {
   long i;
 
-  scm_pthread_mutex_lock (&scm_i_port_table_mutex);
+  scm_mutex_lock (&scm_i_port_table_mutex);
 
   for (i = 0; i < scm_i_port_table_size; i++)
     {
@@ -221,7 +221,7 @@ scm_evict_ports (int fd)
        }
     }
 
-  pthread_mutex_unlock (&scm_i_port_table_mutex);
+  scm_mutex_unlock (&scm_i_port_table_mutex);
 }
 
 
@@ -425,7 +425,7 @@ scm_i_fdes_to_port (int fdes, long mode_bits, SCM name)
       SCM_MISC_ERROR ("requested file mode not available on fdes", SCM_EOL);
     }
 
-  scm_pthread_mutex_lock (&scm_i_port_table_mutex);
+  scm_mutex_lock (&scm_i_port_table_mutex);
 
   port = scm_new_port_table_entry (scm_tc16_fport);
   SCM_SET_CELL_TYPE(port, scm_tc16_fport | mode_bits);
@@ -443,7 +443,7 @@ scm_i_fdes_to_port (int fdes, long mode_bits, SCM name)
       scm_fport_buffer_add (port, -1, -1);
   }
   SCM_SET_FILENAME (port, name);
-  pthread_mutex_unlock (&scm_i_port_table_mutex);
+  scm_mutex_unlock (&scm_i_port_table_mutex);
   return port;
 }
 #undef FUNC_NAME