summaryrefslogtreecommitdiff
path: root/libguile/fports.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2005-01-24 19:14:54 +0000
committerMarius Vollmer <mvo@zagadka.de>2005-01-24 19:14:54 +0000
commita54a94b39707f47a1f30533bcf7664094d65d073 (patch)
tree69a524a4c3fbb084e1e2fef05da61e1852700909 /libguile/fports.c
parentbe1b896c82273d97b79cd839d7281b46e54920f8 (diff)
downloadguile-a54a94b39707f47a1f30533bcf7664094d65d073.tar.gz
Threading changes.
Diffstat (limited to 'libguile/fports.c')
-rw-r--r--libguile/fports.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/fports.c b/libguile/fports.c
index 9d8d1f48a..c79fdc8a6 100644
--- a/libguile/fports.c
+++ b/libguile/fports.c
@@ -201,7 +201,7 @@ scm_evict_ports (int fd)
{
long i;
- scm_mutex_lock (&scm_i_port_table_mutex);
+ scm_pthread_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)
}
}
- scm_mutex_unlock (&scm_i_port_table_mutex);
+ pthread_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_mutex_lock (&scm_i_port_table_mutex);
+ scm_pthread_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);
- scm_mutex_unlock (&scm_i_port_table_mutex);
+ pthread_mutex_unlock (&scm_i_port_table_mutex);
return port;
}
#undef FUNC_NAME