mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 21:10:27 +02:00
use scm_c_atfork_lock_static_mutex for guile's static mutexen
* libguile/async.c (scm_init_async): * libguile/deprecation.c (scm_init_deprecation): * libguile/fluids.c (scm_init_fluids): * libguile/gc.c (scm_init_gc): * libguile/instructions.c (scm_bootstrap_instructions): * libguile/ports.c (scm_init_ports): * libguile/posix.c (scm_init_posix): * libguile/strings.c (string_get_handle): * libguile/threads.c (scm_init_threads): Use the atfork mutex mechanism to lock a number of static mutexen.
This commit is contained in:
parent
585eb4f702
commit
7329a5dba1
9 changed files with 20 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -451,6 +451,8 @@ scm_init_async ()
|
|||
{
|
||||
tc16_async = scm_make_smob_type ("async", 0);
|
||||
|
||||
scm_c_atfork_lock_static_mutex (&async_mutex);
|
||||
|
||||
#include "libguile/async.x"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue