From 8806b4c28a7919b236d10751ebcb15f4a503b08c Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 6 Dec 2011 19:06:13 +0100 Subject: [PATCH] enable port locking * libguile/ports.c (scm_c_make_port_with_encoding): Enable port locking. --- libguile/ports.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libguile/ports.c b/libguile/ports.c index fcf4122a8..bee2c8687 100644 --- a/libguile/ports.c +++ b/libguile/ports.c @@ -582,11 +582,8 @@ scm_c_make_port_with_encoding (scm_t_bits tag, unsigned long mode_bits, SCM_SET_CELL_WORD_1 (ret, (scm_t_bits) entry); SCM_SET_CELL_WORD_2 (ret, (scm_t_bits) ptob); - entry->lock = NULL; -#if 0 entry->lock = scm_gc_malloc_pointerless (sizeof (*entry->lock), "port lock"); scm_i_pthread_mutex_init (entry->lock, scm_i_pthread_mutexattr_recursive); -#endif entry->file_name = SCM_BOOL_F; entry->rw_active = SCM_PORT_NEITHER; -- 2.20.1