Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r--intern/cycles/device/device_opencl.cpp5
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)