diff options
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 3c78b4895ae..e1cfb9e7ade 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -724,6 +724,11 @@ public: { task_pool.cancel(); } + + bool task_cancelled() + { + return task_pool.cancelled(); + } }; Device *device_opencl_create(DeviceInfo& info, bool background) |