Hey all! Can anyone point me in the direction of a simple cross-platform compatible threading library? I'm looking for something as simple to use as OTL (e.g. Otl.async(procedure) ) but which is compatible with OS X, iOS and most importantly, Windows and Android.

Hey all! Can anyone point me in the direction of a simple cross-platform compatible threading library? I'm looking for something as simple to use as OTL (e.g. Otl.async(procedure) ) but which is compatible with OS X, iOS and most importantly, Windows and Android.

I understand that the RTL has TThread, and I'm sure I recall a super simple Android example from the XE5 release content, but I've never been able to find anything equivalent to OTL for x-platform (since every lib I have found uses VCL/Windows libraries).

My main requirement is that interface remains responsive during processing (for example, during WMI queries) and that I can wrap almost any code and have it spawn it's own thread. Obviously I'm not intending to adjust the UI within anything but the main thread, but it'd be nice to have a simple library to allow me to simply wrap procedures and have all the threading handled.

I know I could use .processmessages, but I prefer to call that on specific conditions rather than as some psuedo-alternative to threading.

Any ideas?

Comments

  1. Take a look at DSharp.Core.Async if that does what you need. But I haven't tested it on anything than Windows. You will have to IFDEF some code there.

    ReplyDelete

Post a Comment