X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tbb%2Finclude%2Ftbb%2Fqueuing_mutex.h;h=a7e224b2a4c336906c9d9be18b009b517f7cd945;hb=4c96b4064a92f65beead3cb2453d727187bed40f;hp=fe0d5d9a2b4e9316fcaec350f49c78894859cfef;hpb=46ab0514ba58ee00183ff0584c7ea7c9e3d76494;p=casparcg diff --git a/tbb/include/tbb/queuing_mutex.h b/tbb/include/tbb/queuing_mutex.h index fe0d5d9a2..a7e224b2a 100644 --- a/tbb/include/tbb/queuing_mutex.h +++ b/tbb/include/tbb/queuing_mutex.h @@ -104,7 +104,7 @@ public: scoped_lock *next; //! The local spin-wait variable - /** Inverted (0 - blocked, 1 - acquired the mutex) for the sake of + /** Inverted (0 - blocked, 1 - acquired the mutex) for the sake of zero-initialization. Defining it as an entire word instead of a byte seems to help performance slightly. */ uintptr_t going; @@ -116,8 +116,6 @@ public: static const bool is_rw_mutex = false; static const bool is_recursive_mutex = false; static const bool is_fair_mutex = true; - - friend class scoped_lock; private: //! The last competitor requesting the lock atomic q_tail;