Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Time jumps
On Tue, 24 Dec 2002, Klaus Schmidinger (KS) wrote:
KS> Sergei Haller wrote:
KS> >
KS> > ...
KS> > but while we're at it: what is the need need of `ptm' and `tm_r' in
KS> > cMJD::SetSystemTime() ?
KS>
KS> Since localtime() is not thread safe we need to use localtime_r(), which
KS> requires an extra 'struct tm' parameter. The 'ptm' in cMJD::SetSystemTime()
KS> is actually superfluous, maybe it comes from copying these lines from somewhere
KS> else...
but if 'ptm' isn't needed, localtime isn't needed either. and so 'tm_r'
too. Or am I overseeing something? localtime has a side effect: it sets
the variable 'tzname', so I suppose localtime_r does the same, but tzname
isn't used either.
c ya
Sergei
--
-------------------------------------------------------------------- -?)
eMail: Sergei.Haller@math.uni-giessen.de /\\
-------------------------------------------------------------------- _\_V
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index