Creating Multithreaded Skyrim Mods Part 3 - Callbacks

From the CreationKit Wiki
Revision as of 21:51, 19 January 2015 by imported>Chesko
Jump to navigation Jump to search


This tutorial picks up where our introduction left off. We will be implementing a multithreaded solution to our example problem (a Conjuration mod that spawns many actors) using the Callback pattern.

Pattern Overview

Here is a diagram of how the Callback pattern works.

Above, you can see that the sequence is:

  1. Register for our Callback Event and call a function on our Thread Manager.
  2. The Thread Manager delegates the work to an available thread.
  3. After the thread finishes, we handle the callback in an event.

That is the Callback pattern. Just like the Futures pattern, we will now piece it all together.

Coming soon.