<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] gettimeofday windows
implementation</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">I would like
to modify the gettimeofday implementation (provided for
Windoze) in groupsockhelper.cpp to make it thread safe for my
use.</font></blockquote>
<div><br></div>
<div>I hope you have read the FAQ entry about threads.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial" size="-1">I noticed
the comments for the routine that QueryPerformanceCounter is more
accurate that's why you use it. My question is if I use ftime in each
call what kind of side effects will it cause if
any?</font></blockquote>
<div><br></div>
<div>It will likely cause your application to perform badly, because
timed events will happen at too coarse a granularity.</div>
<div><br></div>
<div>I don't recommend changing the current implementation. If
you really want to make it accessible by multiple threads (for
whatever reason), then I suggest placing locks around the
implementation, or else writing a new version (with a different name)
that could you use just from your non-LIVE555 threads.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>