MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / init

Method init

Source/astcenc_internal_entry.h:181–189  ·  view source on GitHub ↗

* @brief Trigger the pipeline stage init step. * * This can be called from multi-threaded code. The first thread to hit this will process the * initialization. Other threads will block and wait for it to complete. * * @param init_func Callable which executes the stage initialization. It must return the * total number of tasks in the stage. */

Source from the content-addressed store, hash-verified

179 * total number of tasks in the stage.
180 */
181 void init(std::function<size_t(void)> init_func)
182 {
183 std::lock_guard<std::mutex> lck(m_lock);
184 if (!m_init_done)
185 {
186 m_task_count = init_func();
187 m_init_done = true;
188 }
189 }
190
191 /**
192 * @brief Trigger the pipeline stage init step.

Callers 3

compress_imageFunction · 0.80
astcenc_compress_imageFunction · 0.80
astcenc_decompress_imageFunction · 0.80

Calls 1

maxFunction · 0.70

Tested by

no test coverage detected