On Tue, Apr 23, 2013 at 9:22 AM, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl" target="_blank">marcov@stack.nl</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">The TThread code was never specified in terms of the procedural api. As said</div>
the procedural api largely came after tthread was stable.<br>
<br>
Probably at some point calls to the threadmanager were substituted with<br>
calls to beginthread.</blockquote><div><br></div><div>BeginThread, EndThread, CloseThread all directly call thread manager entries behind the scenes, so substituting a call to the thread manager with a call to any of those functions are the same.</div>
<div><br></div><div>To explain, I am writing my own light threading library and just want to ensure my housekeeping is being done correctly. Looking at the current thread system which people use (TThread) and looking at the documentation for BeginThread, EndThread, CloseThread, there seems to be a discrepancy. I'd like to know which is correct. </div>
<div><br></div><div>That is, it is okay to call BeginThread and never call CloseThread? Because that is how TThread currently works, and is in contradiction to the documentation.</div></div>