Main | API | WebRender | destroyThreads

Function

destroyThreads();

A cleanup function to terminate all threads that have been created.

Parameters

None.

Return

Success - [Boolean]

Returns 0/false if an error is detected, else returns 1/true.

Description

This is a cleanup function to terminate any Web Worker threads that may have been created. It is important to use this to terminate threads if you want to recreate the WebRender instance.

WARNING: Executing this function will leave the WebRender instance in a broken state and no further drawing calls should be made after.

Additional Notes

None.