[fpc-pascal] TThread.Synchronize() in shared library
Matthias Klumpp
matthias at nlinux.org
Fri Apr 16 14:24:20 CEST 2010
Thank you for your help!
I will now move some parts of the lib to a DBus daemon and run only the
necessary parts of the lib in extra threads.
I'll also try to set the threadmanager.
On Fri, 16 Apr 2010 13:10:15 +0200 (CEST), Michael Van Canneyt
<michael at freepascal.org> wrote:
> On Fri, 16 Apr 2010, Matthias Klumpp wrote:
>
>>> Set the thread manager of the library to the main application thread
>>> manager. That should hopefully work. But it is not guaranteed; there
>>> are many issues with libraries and threads under linux.
>>>
>>> Michael.
>> How do I do that?
>
> Export SetThreadManager() and call it from your main application with the
> threadmanager from the main application.
>
>> (There is also another thing which I have forgotten: The library should
>> be
>> compatible with applications written in C...)
>
> In that case: forget it; this is currently not possible. Too many
problems.
>
> Michael.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list