We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c051a8 commit e20fefcCopy full SHA for e20fefc
sycl/plugins/cuda/pi_cuda.hpp
@@ -201,15 +201,9 @@ struct _pi_context {
201
202
bool is_primary() const noexcept { return kind_ == kind::primary; }
203
204
- pi_uint32 increment_reference_count() noexcept {
205
- std::lock_guard<std::mutex> guard(mutex_);
206
- return ++refCount_;
207
- }
+ pi_uint32 increment_reference_count() noexcept { return ++refCount_; }
208
209
- pi_uint32 decrement_reference_count() noexcept {
210
211
- return --refCount_;
212
+ pi_uint32 decrement_reference_count() noexcept { return --refCount_; }
213
214
pi_uint32 get_reference_count() const noexcept { return refCount_; }
215
0 commit comments