Cycles: Fix rare dead-locks on TaskScheduler::exit()
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 10 Apr 2016 19:18:54 +0000 (21:18 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 10 Apr 2016 19:18:54 +0000 (21:18 +0200)
commit3a80d5e1d0e4952caa76f1d655429375c0da1884
treef8cb7754064e37d1cf38b48b40a308794ee7c257
parent50f9681e151361fe6685582cb887818fa2092131
Cycles: Fix rare dead-locks on TaskScheduler::exit()

When the Moon is full it was possible to have a dead-lock in task
scheduler's  exit() method.

Similar problem was fixed in Blender's task scheduler 3 years ago
in bae2a2c.
intern/cycles/test/CMakeLists.txt
intern/cycles/test/util_task_test.cpp [new file with mode: 0644]
intern/cycles/util/util_task.cpp