Jump to content

The thread class can be used to execute code on separate threads.  When used properly, threads can leverage the extra power of additional CPU cores.  Threaded programming is an advanced programming topic and should be used with care.

Although multithreading is used extensively in the engine's internal functions, Leadwerks commands are generally not thread-safe.  The best approach to writing multithreaded applications is to push data over to the thread function, process it, then pull it back to the main thread, with a minimum amount of mutex locking.

This class is not available in Lua.

Members

Functions