Documentation
Reference documentation for the multithreaded component base class and the shared runtime manager.
MonoBehaviourMultithreaded
Base class
The component base class for scripts that use ThreadHarmonizer’s recurring multithreading workflow.
Declaration
namespace ThreadHarmonizerEngine
{
public abstract class MonoBehaviourMultithreaded : MonoBehaviour
{
}
}
Use it selectively
Only scripts that require ThreadHarmonizer’s recurring parallel execution need to inherit from this class.
Unity rules still apply
Worker functions should calculate with Unity-independent data. Unity object access must remain on the main thread.
Member functions
Registers a function for recurring execution on the shared worker pool.
Temporarily disables multithreaded execution for this component.
Re-enables multithreaded execution for this component.
Queues the final Unity-side operation without blocking the calling worker thread.
Queues a one-time, Unity-independent operation on the shared worker pool.
Runs a function on Unity’s main thread and blocks the current background thread until it completes.
Removes a previously registered function from the recurring parallel update loop.
Resets the ThreadHarmonizer multithreading state for this component.
ThreadHarmonizerManager
Static API
Static hand-off methods for scripts that need the shared worker pool without inheriting from MonoBehaviourMultithreaded.
Declaration
using ThreadHarmonizerEngine;
Created automatically
Auto-create Manager is enabled by default and reuses an existing valid manager when one is already available.
Persistent singleton
The active runtime manager remains available across ordinary scene transitions.
Static member functions
Queues the Unity-side apply operation without blocking the calling worker thread.
Queues a one-time, Unity-independent operation on the shared worker pool.
Runs a function on Unity’s main thread and blocks the current background thread until it completes.
For more information take a look at the Setup Guide.
