<div dir="ltr">sorry, it is also my idea :D<br>I recently written a new light db interface for firebird, to simplify queries<br>and auto commit transactions (context)<br><br> with pool.GetConnection.newContext do <- start transaction<br>
Execute(newCommand('DELETE FROM COUNTRY WHERE COUNTRY = ?'), [1]);<br> <- commit/rollback transaction<br><br>I also remember MS DirectShow SDK (to write codecs) use an object allocated in the stack to syncronyse critical sections, it look like our trick with the interface<br>
<br><br><br><div class="gmail_quote">2008/7/31 Boian Mitov <span dir="ltr"><<a href="mailto:mitov@mitov.com">mitov@mitov.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial">BTW: As it was discussed a while ago this does not
work so well with Lazarus due to some "optimizations" they do with when a
reference is decremented. With some tricks however it seems that we are on our
way to get it to work under Lazarus as well.</font></div><div class="Ih2E3d">
<div><font size="2" face="Arial"></font> </div>
<div> With best regards,<br> Boian Mitov</div>
<div> </div>
<div>--------------------------------------------------------------------<br>Mitov
Software<br><a href="http://www.mitov.com" target="_blank">http://www.mitov.com</a><br>--------------------------------------------------------------------</div>
<div> </div>
<div> </div>
</div><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="Ih2E3d">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="mitov@mitov.com" href="mailto:mitov@mitov.com" target="_blank">Boian Mitov</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="fpc-devel@lists.freepascal.org" href="mailto:fpc-devel@lists.freepascal.org" target="_blank">FPC developers' list</a> </div>
</div><div class="Ih2E3d"><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Thursday, July 31, 2008 5:59
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [fpc-devel] Re: Multi
threading support</div>
<div><br></div>
</div><div class="Ih2E3d"><div><font size="2" face="Arial"> Hmm... it looks almost one to one copy
from our code in Version 4.0 of our libraries ;-) . Are you one of our
customers, or you have simply come with the same idea as us?</font></div>
<div><font size="2" face="Arial"></font> </div>
<div> With best regards,<br> Boian Mitov</div>
<div> </div>
<div>--------------------------------------------------------------------<br>Mitov
Software<br><a href="http://www.mitov.com" target="_blank">http://www.mitov.com</a><br>--------------------------------------------------------------------</div>
<div><font size="2" face="Arial"></font> </div></div></blockquote></div>
<br>_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br>
<br></blockquote></div><br></div>