<div class="gmail_quote"><div>Hi Brad,</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What I need to do is take the data received over RTSP, decode the H.264 video, and then output it to the screen. It would seem that this wouldn't be too utterly terrible. However, referencing some of these libraries / headers inside Xcode, and trying to move some of this code around into a more Objective-C friendly fashion is giving me fits.<br>

<br>
If there is anyone out there familiar with using Live555 on iOS, or anyone who can give guidance here, I would very much appreciate it. Please feel free to reply here, or contact me offline as well at <a href="mailto:brado@bighillsoftware.com">brado@bighillsoftware.com</a>.<br>

<br></blockquote><div> </div><div>It's a bit of a vague question, so I'll give you some vague advice.  If you want live555 and cocoa/iOS to play nicely with each other, I'd suggest providing a cocoa based implementation of the TaskScheduler (and also potentially the UsageEnvironment), so that live555 events are posted and consumed via the cocoa event loop.  See <a href="http://www.live555.com/liveMedia/faq.html#threads">http://www.live555.com/liveMedia/faq.html#threads</a> for more info on what those classes are for.  Basically this means you can use live555 on the same thread as the main iOS one, and potentially avoid a lot of threading issues.</div>
<div><br></div><div>I've posted my implementation at the bottom of this email, feel free to use, although no guarantee can be made as to the quality!  Regarding rendering of data, for my app, I'm rendering audio rather than video.  I've subclassed MediaSink, with the implementation taking packets of data from live555 and sending to the iOS audio queue.  You will want to do a similar thing, except with an extra decoding step in there and sending to some sort of video/image buffer (not familiar with what's available on iOS, although I would've thought that there'd be an API to decode H.264 in the iOS API so you may not need ffmpeg).</div>
<div><br></div><div><br></div><div>Cheers,</div><div>Jon</div><div><br></div><div><br></div><div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">/*</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:168px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  CocoaTaskScheduler.h</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:84px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  openRTSP</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:273px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  Created by Jon Burgess on 22/10/10.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  Copyright Jon Burgess. All rights reserved.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:21px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*/</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#ifndef COCOA_TASK_SCHEDULER_HH</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#define COCOA_TASK_SCHEDULER_HH</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:245px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#include "BasicUsageEnvironment.hh"</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:98px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#include <map></code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:364px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">class CocoaTaskScheduler : public BasicTaskScheduler</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">public:</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:336px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">CocoaTaskScheduler(); // abstract base class</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:238px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual ~CocoaTaskScheduler();</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:553px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual TaskToken scheduleDelayedTask(int64_t microseconds, TaskFunc* proc,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:420px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                          </code><code class="plain">void* clientData);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:427px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Schedules a task to occur (after a delay) when we next</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:224px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// reach a scheduling point.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// (Does not delay if "microseconds" <= 0)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:441px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Returns a token that can be used in a subsequent call to</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:210px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// unscheduleDelayedTask()</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:420px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual void unscheduleDelayedTask(TaskToken& prevTask);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:308px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// (Has no effect if "prevTask" == NULL)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:294px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Sets "prevTask" to NULL afterwards.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:385px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual void rescheduleDelayedTask(TaskToken& task,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:532px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                       </code><code class="plain">int64_t microseconds, TaskFunc* proc,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                       </code><code class="plain">void* clientData);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:490px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Combines "unscheduleDelayedTask()" with "scheduleDelayedTask()"</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// (setting "task" to the new task token).</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:546px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// For handling socket operations in the background (from the event loop):</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:469px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  typedef void BackgroundHandlerProc(void* clientData, int mask);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:497px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Possible bits to set in "mask".  (These are deliberately defined</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:476px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// the same as those in Tcl, to make a Tcl-based subclass easy.)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:882px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual void setBackgroundHandling(int socketNum, int conditionSet, BackgroundHandlerProc* handlerProc, void* clientData);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:504px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual void moveSocketHandling(int oldSocketNum, int newSocketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:679px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Changes any socket handling for "oldSocketNum" so that occurs with "newSocketNum" instead.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">virtual void doEventLoop(char* watchVariable = NULL);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:413px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Stops the current thread of control from proceeding,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:448px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// but allows delayed tasks (and/or background I/O handling)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:126px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// to proceed.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:448px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// (If "watchVariable" is not NULL, then we return from this</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:280px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// routine when *watchVariable != 0)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:56px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">private:</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">/**</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:518px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">* This acts as a bridge between the NSInvocation given to an NSTimer </code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-image:initial;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:287px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">* and the TaskFunc function pointer.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">*/</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:168px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">void* mTimerInvokee;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">/**</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:574px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">* Keep a map of socket to run loop ref, so that we can remove socket handling</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:147px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">* from run loop.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">*/</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:448px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// TODO: shouldn't be a void* - compilation problems though.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">std::map<int, void*> mSocketToRunLoopRef;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">/**</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:427px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">* Map of socket to CFSocketRef (for later invalidation).</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:84px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">* TODO:</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:49px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">     </code><code class="plain">*/</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">std::map<int, void*> mSocketToCFSocket;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">};</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:252px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#endif /* COCOA_TASK_SCHEDULER_HH */</code></td></tr></tbody></table></div></div><div><br></div><div><br></div><div><br></div><div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">/*</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:182px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  CocoaTaskScheduler.cpp</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:84px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  openRTSP</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:273px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  Created by Jon Burgess on 22/10/10.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*  Copyright Jon Burgess. All rights reserved.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:21px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code><code class="plain">*/</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#include "CocoaTaskScheduler.h"</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:231px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#import <Foundation/Foundation.h></code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:133px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#include <assert.h></code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:154px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#include "constants.h"</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:168px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">#import "TimerInvokee.h"</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:280px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">CocoaTaskScheduler::CocoaTaskScheduler()</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:182px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">: BasicTaskScheduler()</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:336px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">mTimerInvokee = [[TimerInvokee alloc] init];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:287px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">CocoaTaskScheduler::~CocoaTaskScheduler()</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[(TimerInvokee*)mTimerInvokee release];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// Schedules a task to occur (after a delay) when we next</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:196px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// reach a scheduling point.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:294px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// (Does not delay if "microseconds" <= 0)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:413px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// Returns a token that can be used in a subsequent call to</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:182px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// unscheduleDelayedTask()</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:609px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">TaskToken CocoaTaskScheduler::scheduleDelayedTask(int64_t microseconds, TaskFunc* proc,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:385px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                      </code><code class="plain">void* clientData)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:406px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">NSTimeInterval seconds = microseconds / MICROS_IN_SEC;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:441px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">SEL timerSelector = @selector(execute:clientData:invoker:);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:749px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">NSMethodSignature* methodSig = [(TimerInvokee*)mTimerInvokee methodSignatureForSelector:timerSelector];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:602px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:methodSig];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:392px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[invocation setTarget:(TimerInvokee*)mTimerInvokee];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[invocation setSelector:timerSelector];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[invocation setArgument:&proc atIndex:2];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:357px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[invocation setArgument:&clientData atIndex:3];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:483px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">NSTimer* timer = [NSTimer scheduledTimerWithTimeInterval:seconds </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:504px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                                  </code><code class="plain">invocation:invocation </code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:455px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                                     </code><code class="plain">repeats:NO];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[invocation setArgument:&timer atIndex:4];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:532px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Need an extra retain here (maybe) because otherwise "unschedule...()"</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// may be called with an invalid NSTimer.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:133px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">[timer retain];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:651px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">//  NSLog(@"Scheduled task: %u, microseconds: %li, proc: %i", timer, microseconds, proc);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:119px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">return timer;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:280px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// (Has no effect if "prevTask" == NULL)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:266px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// Sets "prevTask" to NULL afterwards.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:469px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">void CocoaTaskScheduler::unscheduleDelayedTask(TaskToken& prevTask)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:175px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">if (prevTask == NULL)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:105px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">return;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:280px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">NSTimer* timer = (NSTimer*)prevTask;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:147px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">if (timer == nil)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:154px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// Do nothing.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:210px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">else if (![timer isValid])</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:497px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">NSLog(@"unscheduleDelayedTask: invalid timer, nothing to do.");</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:56px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">else</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:329px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"Unscheduling task: %u", timer);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:189px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">[timer invalidate];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:140px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">timer = nil;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"Unscheduled task: %u", timer);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:154px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">//[timer release];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:140px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">prevTask = NULL;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:462px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// Combines "unscheduleDelayedTask()" with "scheduleDelayedTask()"</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:294px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// (setting "task" to the new task token).</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:441px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">void CocoaTaskScheduler::rescheduleDelayedTask(TaskToken& task,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:504px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                   </code><code class="plain">int64_t microseconds, TaskFunc* proc,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:364px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                   </code><code class="plain">void* clientData)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:280px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  NSLog(@"Reschedule task: %u", task);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:224px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">unscheduleDelayedTask(task);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:441px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">task = scheduleDelayedTask(microseconds, proc, clientData);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:196px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">struct HandlerAndClientData </code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:413px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">CocoaTaskScheduler::BackgroundHandlerProc* handlerProc;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:147px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">void* clientData;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">};</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">typedef struct HandlerAndClientData HandlerAndClientData;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:168px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">static void MyCallBack (</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                 </code><code class="plain">CFSocketRef s,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:357px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                 </code><code class="plain">CFSocketCallBackType callbackType,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:245px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                 </code><code class="plain">CFDataRef address,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:238px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                 </code><code class="plain">const void *data,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:189px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                 </code><code class="plain">void *info</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:126px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                 </code><code class="plain">)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:539px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">HandlerAndClientData* handlerAndClientData = (HandlerAndClientData*)info;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:665px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">CocoaTaskScheduler::BackgroundHandlerProc* handlerProc = handlerAndClientData->handlerProc;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:392px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">void* clientData = handlerAndClientData->clientData;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">int resultConditionSet = 0;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">if (callbackType == kCFSocketReadCallBack)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:427px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"Socket read callback for socket ref: %u", s);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">resultConditionSet |= SOCKET_READABLE;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:329px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">if (callbackType == kCFSocketWriteCallBack)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:434px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"Socket write callback for socket ref: %u", s);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:322px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">resultConditionSet |= SOCKET_WRITABLE;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:203px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// TODO: SOCKET_EXCEPTION</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:357px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">(*handlerProc)(clientData, resultConditionSet);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:434px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">void CocoaTaskScheduler::setBackgroundHandling(int socketNum, </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:455px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                               </code><code class="plain">int conditionSet, </code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:581px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                               </code><code class="plain">BackgroundHandlerProc* handlerProc, </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:448px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                               </code><code class="plain">void* clientData)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:728px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  NSLog(@"CocoaTaskScheduler::setBackgroundHandling(), socketNum: %i, condition set: %i, handler: %u",</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:336px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//        socketNum, conditionSet, handlerProc);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:28px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  </code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  NSLog(@"Start of setBackgroundHandling");</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:280px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  std::map<int, void*>::iterator iter;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:308px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  for (iter = mSocketToRunLoopRef.begin();</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//       iter != mSocketToRunLoopRef.end();</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:112px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//       ++iter)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  {</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"socketNum: %i", iter->first);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  }</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:168px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  NSLog(@"*****");    </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">if (   (conditionSet == 0) </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:546px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">&& (mSocketToRunLoopRef.find(socketNum) != mSocketToRunLoopRef.end()))</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:238px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// Remove socket handling.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:679px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFRunLoopSourceRef runLoopSourceRef = (CFRunLoopSourceRef)mSocketToRunLoopRef[socketNum];</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:287px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">assert(runLoopSourceRef != NULL);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:658px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFRunLoopRemoveSource(CFRunLoopGetCurrent(), runLoopSourceRef, kCFRunLoopDefaultMode);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// Remove from the map.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">mSocketToRunLoopRef.erase(socketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:546px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// Invalidate the CFSocket (so that the same native socket can be used</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:294px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// again in a different CFSocket).</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:532px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// TODO: revisit, probably very inefficient to not re-use CFSockets.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:553px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFSocketRef socketToRemove = (CFSocketRef)mSocketToCFSocket[socketNum];</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:273px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">assert(socketToRemove != NULL);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFSocketInvalidate(socketToRemove);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">mSocketToCFSocket.erase(socketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:497px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"Removed background handling for socket %i", socketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">else </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:539px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// If the socket is already being used as a run loop source, clean up</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:560px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// before trying to register it again (or the new handler won't be used.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:539px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">if (mSocketToRunLoopRef.find(socketNum) != mSocketToRunLoopRef.end())</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:616px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//          NSLog(@"Socket %i already used, removing from run loop before re-adding...",</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:203px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//                socketNum);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">            </code><code class="plain">setBackgroundHandling(socketNum, </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:259px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                  </code><code class="plain">0, </code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:462px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                  </code><code class="plain">NULL,             // handlerProc</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:455px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                  </code><code class="plain">NULL);            // clientData</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:392px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFOptionFlags optionFlags = kCFSocketNoCallBack;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">if (conditionSet & SOCKET_READABLE)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:343px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">            </code><code class="plain">optionFlags |= kCFSocketReadCallBack;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:483px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//          NSLog(@"Enabled read callback for socket %i", socketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">if (conditionSet & SOCKET_WRITABLE)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:350px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">            </code><code class="plain">optionFlags |= kCFSocketWriteCallBack;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:490px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//          NSLog(@"Enabled write callback for socket %i", socketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:308px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">if (conditionSet & SOCKET_EXCEPTION)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:217px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">//      optionFlags |= TODO</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:413px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFSocketCallBack callback = MyCallBack;     // TODO</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:791px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">HandlerAndClientData* handlerAndClientData = (HandlerAndClientData*)malloc(sizeof(HandlerAndClientData));</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:392px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">handlerAndClientData->handlerProc = handlerProc;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:378px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">handlerAndClientData->clientData = clientData;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:588px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                                                                   </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:154px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// TODO: leak.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:644px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFSocketContext* pSocketContext = (CFSocketContext*)malloc(sizeof(CFSocketContext));</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:252px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">pSocketContext->version = 0;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:364px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">pSocketContext->info = handlerAndClientData;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:497px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">pSocketContext->retain = NULL;           // TODO: revisit this.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:273px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">pSocketContext->release = NULL;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:329px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">pSocketContext->copyDescription = NULL;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:371px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                                    </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:791px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFSocketRef socketRef = CFSocketCreateWithNative(NULL, socketNum, optionFlags, callback, pSocketContext);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:343px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">mSocketToCFSocket[socketNum] = socketRef;</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:539px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">NSLog(@"Created CFSocket %u for socketNum %i", socketRef, socketNum);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:518px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// Don't close the native socket when the CFSocket is invalidated.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:392px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">optionFlags = CFSocketGetSocketFlags(socketRef);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:357px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">optionFlags &= ~kCFSocketCloseOnInvalidate;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:385px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFSocketSetSocketFlags(socketRef, optionFlags);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:553px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFRunLoopSourceRef runLoopSourceRef = CFSocketCreateRunLoopSource(NULL,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:588px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                                                          </code><code class="plain">socketRef,</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:539px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">                                                                          </code><code class="plain">0);</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:637px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSourceRef, kCFRunLoopDefaultMode);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:63px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:567px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// Record the mapping between socket and run loop source, so that we can </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:189px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">// remove it later.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:406px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">mSocketToRunLoopRef[socketNum] = runLoopSourceRef;</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  NSLog(@"End of setBackgroundHandling");</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:308px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  for (iter = mSocketToRunLoopRef.begin();</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:301px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//       iter != mSocketToRunLoopRef.end();</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:112px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//       ++iter)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  {</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:315px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSLog(@"socketNum: %i", iter->first);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  }</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:168px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//  NSLog(@"*****");    </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:553px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">void CocoaTaskScheduler::moveSocketHandling(int oldSocketNum, int newSocketNum)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:126px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">assert(false);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:651px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// Changes any socket handling for "oldSocketNum" so that occurs with "newSocketNum" instead.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces"> </code> </td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:385px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// Stops the current thread of control from proceeding,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:420px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// but allows delayed tasks (and/or background I/O handling)</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:98px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// to proceed.</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:420px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// (If "watchVariable" is not NULL, then we return from this</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:252px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// routine when *watchVariable != 0)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:21px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">// </code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">void CocoaTaskScheduler::doEventLoop(char* watchVariable)</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:385px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// Don't think it is necessary to do anything here,</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:329px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// as the iOS main event loop will be used.</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:385px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">NSLog(@"CocoaTaskScheduler::doEventLoop() called");</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:21px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">/**</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:427px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">// TODO: maybe we do need to handle watchVariable though?</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:399px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">if ((watchVariable != NULL) && (*watchVariable != 0))</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">{</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:336px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">//      NSAssert(false, "watchVariable is set");</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-image:initial;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:154px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">        </code><code class="plain">assert(false);</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:35px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="spaces">    </code><code class="plain">}</code></td></tr></tbody></table></div><div class="line alt2" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:7px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">}</code></td></tr></tbody></table></div><div class="line alt1" style="padding-left:5px;height:1.4em;background-color:rgb(255,255,255);font-family:monospace;font-size:12px;line-height:16px;white-space:pre">
<table style="font-size:inherit;font-style:inherit;font-variant:inherit;border-collapse:collapse!important"><tbody><tr><td class="content" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;vertical-align:top!important;width:14px;white-space:pre;border-left-width:initial!important;border-left-style:none!important;border-left-color:initial!important">
<code class="plain">*/</code></td></tr></tbody></table></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote></div>