Hi Gilles, Alex, and Marcel,<div><br></div><div>Thanks for the files gilles :)</div><div>As Alex said, we might use some simple variables for locking critical sections. We do use global stuff as he pointed out. We don't want to pull in a Qt dependency for libface.<br>
<br></div><div>PS: I just got my modem to work and am now building digiKam and dependencies.</div><div><br><div class="gmail_quote">On Mon, May 3, 2010 at 11:40 AM, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2010/5/1 Marcel Wiesweg <<a href="mailto:marcel.wiesweg@gmx.de">marcel.wiesweg@gmx.de</a>>:<br>
<div class="im">><br>
>> Hi Everyone!<br>
>><br>
>> The GSoC community bonding period has started. My exams just got over and<br>
>> I'm trying to get familiar with digiKam's workings.<br>
>> Now, a major concern is that libface's methods should be thread-safe to be<br>
>> usable in digKam.<br>
>><br>
>> pthreads are POSIX-only. So, I'd like to know what sort of threading<br>
>> digiKam uses. I can browse the code myself, but it'd be faster if someone<br>
>> points me to some relevant source files which make use of threading, just<br>
>> so that I can learn quicker.<br>
><br>
> Of course, we use Qt ;-)<br>
> If you now feel the need, reconsider to build upon Qt Core at least. It's<br>
> about as cross-platform as it gets nowadays.<br>
<br>
</div>To second Marcel, we use QThread in digiKam core, as with this class<br>
dedecated to run image editor tool code in a separated thread :<br>
<br>
main classes :<br>
<br>
<a href="http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/threads/dynamicthread.h?revision=1118746&view=markup" target="_blank">http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/threads/dynamicthread.h?revision=1118746&view=markup</a><br>

<a href="http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.h?revision=1115803&view=markup" target="_blank">http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.h?revision=1115803&view=markup</a><br>

<br>
And there a simple filtre to adjust brightness, contrast and gamma...<br>
<br>
<a href="http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dimg/filters/bcg/bcgfilter.h?revision=1099598&view=markup" target="_blank">http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dimg/filters/bcg/bcgfilter.h?revision=1099598&view=markup</a><br>

<font color="#888888"><br>
Gilles<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Aditya Bhatt<br>Blog : <a href="http://adityabhatt.wordpress.com">http://adityabhatt.wordpress.com</a><br>Bitbucket: <a href="http://bitbucket.org/aditya_bhatt">http://bitbucket.org/aditya_bhatt</a><br>
Face Recognition Library : <a href="http://libface.sourceforge.net">http://libface.sourceforge.net</a><br>
</div>