Skip to content

Commit

Permalink
Make WorkDetatchedTask call operator const. This work is in preparati…
Browse files Browse the repository at this point in the history
…on for adding suppoort for oneTBB.

Fixes #2466

(Internal change: 2328323)
  • Loading branch information
pixar-oss committed May 24, 2024
1 parent b10e503 commit 65abf90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/base/work/detachedTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 65abf90

Please sign in to comment.