locked

locked#

stdgpu: stdgpu::mutex_array::reference::locked
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ locked()

template<typename Block = mutex_default_type, typename Allocator = safe_device_allocator<Block>>
STDGPU_DEVICE_ONLY bool stdgpu::mutex_array< Block, Allocator >::reference::locked ( ) const

Checks whether the mutex is locked.

Returns
True if the mutex is locked, false otherwise