Difference between revisions of "Creating Multithreaded Skyrim Mods"

m
no edit summary
imported>Chesko
m
imported>Chesko
m
Line 127: Line 127:
     ThreadManager.wait_all()
     ThreadManager.wait_all()
</source>
</source>


<code>PlaceAtMeAsync</code> is a function we've written that gets assigned to a thread. A thread that has been given data to work on is referred to as being '''queued'''. <code>wait_all()</code> tells the Thread Manager that it should start running any queued threads and that we will wait until they're finished.
<code>PlaceAtMeAsync</code> is a function we've written that gets assigned to a thread. A thread that has been given data to work on is referred to as being '''queued'''. <code>wait_all()</code> tells the Thread Manager that it should start running any queued threads and that we will wait until they're finished.
Line 185: Line 186:
     function SomeFunction()
     function SomeFunction()
         ThreadManager.PlaceSwordAsync(Sword)
         ThreadManager.PlaceSwordAsync(Sword)
        ThreadManager.wait_all()
     endFunction
     endFunction


Anonymous user