Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_task.cpp
| Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | if(users == 0) { | ||||
| /* delete threads */ | /* delete threads */ | ||||
| foreach(thread *t, threads) { | foreach(thread *t, threads) { | ||||
| t->join(); | t->join(); | ||||
| delete t; | delete t; | ||||
| } | } | ||||
| threads.clear(); | threads.clear(); | ||||
| threads.free_memory(); | |||||
| } | } | ||||
| } | } | ||||
| bool TaskScheduler::thread_wait_pop(Entry& entry) | bool TaskScheduler::thread_wait_pop(Entry& entry) | ||||
| { | { | ||||
| thread_scoped_lock queue_lock(queue_mutex); | thread_scoped_lock queue_lock(queue_mutex); | ||||
| while(queue.empty() && !do_exit) | while(queue.empty() && !do_exit) | ||||
| ▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines | |||||