<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<title>Re: [Live-devel] TaskScheduler::DoEventLoop() question.</title>
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>&gt;</span></font>If you really want to,
you can write your own subclass of &quot;TaskScheduler&quot; and reimplement
&quot;doEventLoop()&quot;, or write your own subclass of <font color=navy><span
style='color:navy'>&gt;</span></font>&quot;BasicTaskScheduler0&quot; and
reimplement &quot;SingleStep&quot;.&nbsp; I.e., if you wish, you can implement
your own event loop (provided that it implements <font color=navy><span
style='color:navy'>&gt;</span></font>the interface defined in
&quot;UsageEnvironment/include/UsageEnvironment.hh&quot;).<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>&gt;</span></font>The event loop
implementation - &quot;BasicTaskScheduler&quot; - that's included with the
supplied code is just that: 'basic'.<o:p></o:p></p>

</div>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'><x-sigsep>-- <o:p></o:p></span></font></pre>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</x-sigsep><font color=navy><span style='color:navy'>&gt;</span></font>Ross
Finlayson<br>
<font color=navy><span style='color:navy'>&gt;</span></font>Live Networks, Inc.<br>
<font color=navy><span style='color:navy'>&gt;</span></font>http://www.live555.com/<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>And if I mess with <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>TaskScheduler::DoEventLoop()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>{<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;While(1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp; {<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp; If (watchVariable !=
NULL &amp;&amp; *watchVariable !=) break;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp; SingleStep();<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp; }<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Say, to comment out while loop and if
keyword? And implement it in my OnTimer function<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>What effect could that have on work of the
library, considering I saw many places in lib that <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Use doEventLoop?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

<BR />
<BR />
<HR />
ELMA&nbsp;Kurtalj&nbsp;d.o.o.&nbsp;(ELMA&nbsp;Kurtalj&nbsp;ltd.)<BR />
Vitezićeva&nbsp;1a,&nbsp;10000&nbsp;Zagreb,&nbsp;Hrvatska&nbsp;(Viteziceva&nbsp;1a,&nbsp;10000&nbsp;Zagreb,&nbsp;Croatia)<BR />
Tel:&nbsp;01/3035555,&nbsp;Faks:&nbsp;01/3035599&nbsp;(Tel:&nbsp;++385-1-3035555,&nbsp;Fax:&nbsp;++385-1-3035599&nbsp;)<BR />
<BR />
Www:<BR />
www.elma.hr;&nbsp;shop.elma.hr<BR />
<BR />
E-mail:<BR />
elma@elma.hr&nbsp;(elma@elma.hr)<BR />
pitanje@elma.hr&nbsp;(questions@elma.hr)<BR />
primjedbe@elma.hr&nbsp;(complaints@elma.hr)<BR />
prodaja@elma.hr&nbsp;(sales@elma.hr)<BR />
servis@elma.hr&nbsp;(servicing@elma.hr)<BR />
shop@elma.hr&nbsp;(shop@elma.hr)<BR />
skladiste@elma.hr&nbsp;(warehouse@elma.hr)<BR />
<BR />
</body>

</html>