From 65abf903536e84a7079454641c4913b721e0fae0 Mon Sep 17 00:00:00 2001 From: pixar-oss Date: Mon, 20 May 2024 13:36:48 -0700 Subject: [PATCH] Make WorkDetatchedTask call operator const. This work is in preparation for adding suppoort for oneTBB. Fixes #2466 (Internal change: 2328323) --- pxr/base/work/detachedTask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pxr/base/work/detachedTask.h b/pxr/base/work/detachedTask.h index 876fee68c9..b4b3023bbf 100644 --- a/pxr/base/work/detachedTask.h +++ b/pxr/base/work/detachedTask.h @@ -41,7 +41,7 @@ struct Work_DetachedTask { explicit Work_DetachedTask(Fn &&fn) : _fn(std::move(fn)) {} explicit Work_DetachedTask(Fn const &fn) : _fn(fn) {} - void operator()() { + void operator()() const { TfErrorMark m; _fn(); m.Clear();