Loading dom/locks/LockManagerChild.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(LockManagerChild, Release) void LockManagerChild::RequestLock(const LockRequest& aRequest, const LockOptions& aOptions) { auto requestActor = MakeRefPtr<LockRequestChild>(aRequest, aOptions.mSignal); requestActor->MaybeSetWorkerRef(); SendPLockRequestConstructor( requestActor, IPCLockRequest(nsString(aRequest.mName), aOptions.mMode, aOptions.mIfAvailable, aOptions.mSteal)); Loading dom/locks/LockRequestChild.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,9 @@ LockRequestChild::LockRequestChild( if (aSignal.WasPassed()) { Follow(&aSignal.Value()); } } void LockRequestChild::MaybeSetWorkerRef() { if (!NS_IsMainThread()) { mWorkerRef = StrongWorkerRef::Create( GetCurrentThreadWorkerPrivate(), "LockManager", Loading dom/locks/LockRequestChild.h +2 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,8 @@ class LockRequestChild final : public PLockRequestChild, const LockRequest& aRequest, const Optional<OwningNonNull<AbortSignal>>& aSignal); void MaybeSetWorkerRef(); IPCResult RecvResolve(const LockMode& aLockMode, bool aIsAvailable); IPCResult Recv__delete__(bool aAborted); Loading Loading
dom/locks/LockManagerChild.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(LockManagerChild, Release) void LockManagerChild::RequestLock(const LockRequest& aRequest, const LockOptions& aOptions) { auto requestActor = MakeRefPtr<LockRequestChild>(aRequest, aOptions.mSignal); requestActor->MaybeSetWorkerRef(); SendPLockRequestConstructor( requestActor, IPCLockRequest(nsString(aRequest.mName), aOptions.mMode, aOptions.mIfAvailable, aOptions.mSteal)); Loading
dom/locks/LockRequestChild.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,9 @@ LockRequestChild::LockRequestChild( if (aSignal.WasPassed()) { Follow(&aSignal.Value()); } } void LockRequestChild::MaybeSetWorkerRef() { if (!NS_IsMainThread()) { mWorkerRef = StrongWorkerRef::Create( GetCurrentThreadWorkerPrivate(), "LockManager", Loading
dom/locks/LockRequestChild.h +2 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,8 @@ class LockRequestChild final : public PLockRequestChild, const LockRequest& aRequest, const Optional<OwningNonNull<AbortSignal>>& aSignal); void MaybeSetWorkerRef(); IPCResult RecvResolve(const LockMode& aLockMode, bool aIsAvailable); IPCResult Recv__delete__(bool aAborted); Loading