Commit 5dda38d4 authored by David Reid's avatar David Reid

Add a clarifying comment to the resource_manager example.

parent 8800c3e7
...@@ -68,7 +68,9 @@ static ma_thread_result MA_THREADCALL custom_job_thread(void* pUserData) ...@@ -68,7 +68,9 @@ static ma_thread_result MA_THREADCALL custom_job_thread(void* pUserData)
/* /*
Terminate if we got a quit message. You don't need to terminate like this, but's a bit more robust. You can Terminate if we got a quit message. You don't need to terminate like this, but's a bit more robust. You can
just use a global variable or something similar if it's easier for you particular situation. just use a global variable or something similar if it's easier for you particular situation. The quit job
remains in the queue and will continue to be returned by future calls to ma_resource_manager_next_job(). The
reason for this is to give every job thread visibility to the quit job so they have a chance to exit.
*/ */
if (job.toc.code == MA_JOB_QUIT) { if (job.toc.code == MA_JOB_QUIT) {
printf("CUSTOM JOB THREAD TERMINATING... "); printf("CUSTOM JOB THREAD TERMINATING... ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment