Mercurial > hg > Game > Cerium
diff TaskManager/Gpu/GpuThreads.cc @ 1877:f73ca57cdc81 draft
add ppe wait semaphore to avoid ppe busy wait
author | Kohagura |
---|---|
date | Tue, 31 Dec 2013 19:33:26 +0900 |
parents | 289378e5abf8 |
children |
line wrap: on
line diff
--- a/TaskManager/Gpu/GpuThreads.cc Mon Dec 30 20:16:36 2013 +0900 +++ b/TaskManager/Gpu/GpuThreads.cc Tue Dec 31 19:33:26 2013 +0900 @@ -34,7 +34,12 @@ args->useRefDma = use_refdma; pthread_create(&threads[0], NULL, &gpu_thread_run, args); +} +void +GpuThreads::set_mail_waiter(SemPtr w) +{ + args->scheduler->connector->set_mail_waiter(w); } void *