mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Add support for running custom code on thread entry and exit.
To use this, define `MA_ON_THREAD_ENTRY` and `MA_ON_THREAD_EXIT` before the implementation of miniaudio. Public issue https://github.com/mackron/miniaudio/issues/301
This commit is contained in:
@@ -5947,7 +5947,7 @@ MA_API ma_result ma_resource_manager_init(const ma_resource_manager_config* pCon
|
||||
|
||||
/* Create the job threads last to ensure the threads has access to valid data. */
|
||||
for (iJobThread = 0; iJobThread < pResourceManager->config.jobThreadCount; iJobThread += 1) {
|
||||
result = ma_thread_create(&pResourceManager->jobThreads[iJobThread], ma_thread_priority_normal, 0, ma_resource_manager_job_thread, pResourceManager);
|
||||
result = ma_thread_create(&pResourceManager->jobThreads[iJobThread], ma_thread_priority_normal, 0, ma_resource_manager_job_thread, &pResourceManager->config.allocationCallbacks);
|
||||
if (result != MA_SUCCESS) {
|
||||
ma_mutex_uninit(&pResourceManager->dataBufferBSTLock);
|
||||
ma_job_queue_uninit(&pResourceManager->jobQueue);
|
||||
|
||||
Reference in New Issue
Block a user