[Lazarus] How to use RunCommandIndir() in a thread?
Michael Thompson
mike.cornflake at gmail.com
Tue Apr 16 06:49:02 CEST 2019
G'day,
Sorry for not replying earlier, I'm under the pump at work.
I run multiple ffprobe calls, each in their own thread. I can report there
is no problem. So ffprobe itself is threadsafe. I also use a (Lazarus)
app called dmMediaConverter that calls ffmpeg in threads to convert video,
so again ffmpeg is threadsafe.
I use TProcess directly. It will be a day or two, but I can flick you
through the code that sets up my TProcess, and I put together something on
my thread logic.
I can tell you that I have only ever written one threaded app in my life -
and that was to thread ffprobe. The whole thing was much easier to develop
than I thought. For resources I used the wiki, but mainly the Example
Programs that ship with Lazarus.
Apologies for the lack of actual info here.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190416/4f19906d/attachment-0001.html>
More information about the lazarus
mailing list