#include "services/webnn/queueable_resource_state_base.h"
#include "services/webnn/resource_task.h"
namespace webnn {
bool QueueableResourceStateBase::CanLock(bool exclusive) const { … }
void QueueableResourceStateBase::Lock(bool exclusive) { … }
void QueueableResourceStateBase::Unlock() { … }
void QueueableResourceStateBase::EnqueueTask(scoped_refptr<ResourceTask> task) { … }
ResourceTask* QueueableResourceStateBase::PeekTask() const { … }
scoped_refptr<ResourceTask> QueueableResourceStateBase::PopTask() { … }
bool QueueableResourceStateBase::IsLockedShared() const { … }
bool QueueableResourceStateBase::IsLockedExclusive() const { … }
QueueableResourceStateBase::QueueableResourceStateBase() = default;
QueueableResourceStateBase::~QueueableResourceStateBase() { … }
}