Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/task_pool.cc
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | switch (priority) { | ||||
| my_context.set_priority(tbb::priority_low); | my_context.set_priority(tbb::priority_low); | ||||
| break; | break; | ||||
| case TASK_PRIORITY_HIGH: | case TASK_PRIORITY_HIGH: | ||||
| my_context.set_priority(tbb::priority_normal); | my_context.set_priority(tbb::priority_normal); | ||||
| break; | break; | ||||
| } | } | ||||
| # endif | # endif | ||||
| } | } | ||||
| ~TBBTaskGroup() | |||||
| { | |||||
| } | |||||
| }; | }; | ||||
| #endif | #endif | ||||
| /* Task Pool */ | /* Task Pool */ | ||||
| enum TaskPoolType { | enum TaskPoolType { | ||||
| TASK_POOL_TBB, | TASK_POOL_TBB, | ||||
| TASK_POOL_TBB_SUSPENDED, | TASK_POOL_TBB_SUSPENDED, | ||||
| ▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines | |||||