diff --git a/Common/Thread/ThreadUtil.h b/Common/Thread/ThreadUtil.h index 0a6b122e3c..336ce9337b 100644 --- a/Common/Thread/ThreadUtil.h +++ b/Common/Thread/ThreadUtil.h @@ -2,6 +2,10 @@ #include +// I plan to experiment with these to see if this approach can also work in C++. +// The major advantage compared to a normal mutex is that we use the type system +// to enforce that the resource is only accessed when the mutex is locked. + template class RustMutexProxy { public: