On Mon, Sep 28, 2009 at 10:29:44AM -0700, Nobutomo Nakano wrote:
> Darren J Moffat wrote:
> >Why isn't the implementation of this using the port_associate(3C) 
> >facility to watch for the default timezone file being updated ?
> 
> localtime(3C) is very performance sensitive. We don't want to
> make any extra system calls or threads interactions from the
> function.

Darren's scheme wouldn't require anything more than adding a membar in
ctime() and friends in the common case.

The problem with Darren's proposal is that it's too invasive (extra
thread, extra file descriptors, as Casper points out, though the library
could recover from closefrom(3C) clobbering its file descriptor(s)).

But performance is not a problem for Darren's proposed alternative.

Nico
-- 

Reply via email to