Module thread

Source
Expand description

Multithreading for Duat

The main rationale behind multithreading in Duat is not so much the performance gains, but more to allow for multi tasking, as some plugins (like an LSP) may block for a while, which would be frustrating for end users.

The functions in this module differ from std::thread in that they synchronize with Duat, telling the application when there are no more threads running, so Duat can safely quit or reload.

Statics§

HANDLES
Duat’s JoinHandles

Functions§

spawn
Spawns a new thread, returning a JoinHandle for it.