guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code review for thread safeness


From: Kevin Ryde
Subject: Re: Code review for thread safeness
Date: Tue, 08 Mar 2005 09:36:09 +1100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> writes:
>
> If there might be non-local exits, scm_frame_critical_section can be
> used instead.

If an error occurs and a lazy-catch executes, is the mutex unlocked
for that handler?

> Also, there are probably many more places that need to become critical
> sections.  We need to find them and use SCM_CRITICAL_SECTION_START/END
> or scm_frame_critical_section, as appropriate.

The ones I've spotted are (I might have posted this before),

        gethostbyname
        getpwuid
        setpwent (etc)
        getgrgid
        setgrent (etc)
        setlocale
        scm_mem2symbol 

or scm_i_mem2symbol or whatever it is now.  I probably won't get a
chance to actually do anything about these.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]