BaseProc::release

This commit is contained in:
notyouraveragehooman 2020-08-21 15:38:44 -07:00 committed by Léo Lam
parent a49164a85f
commit da35629aa8
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
3 changed files with 7 additions and 2 deletions

View File

@ -89474,7 +89474,7 @@
0x00000071011BA9FC,_ZN4ksys3act8BaseProc17x00000071011ba9fcEv,0xBC,_ZN4ksys3act8BaseProc17x00000071011ba9fcEv
0x00000071011baab8,ActorBase::setProcStateFlag,124,
0x00000071011bab34,ActorBase::acquire,196,
0x00000071011babf8,ActorBase::release,36,
0x00000071011babf8,ActorBase::release,36,_ZN4ksys3act8BaseProc7releaseEv
0x00000071011bac1c,ActorBase::doDelete,244,
0x00000071011bad10,ActorBase::preDelete,164,_ZN4ksys3act8BaseProc11doPreDeleteEPb
0x00000071011badb4,ActorBase::setJobPriority,288,

Can't render this file because it is too large.

View File

@ -425,6 +425,11 @@ bool BaseProc::x00000071011ba9fc() {
return true;
}
void BaseProc::release() {
if (mRefCount >= 1)
mRefCount--;
}
BaseProc* BaseProc::getConnectedCalcParent() const {
if (mConnectedCalcParent == nullptr || mConnectedCalcParent->mState == State::Delete)
return nullptr;

View File

@ -282,7 +282,7 @@ protected:
sead::ListNode mDeleteListNode;
BaseProcMapNode mMapNode{this};
BaseProcUnit* mProcUnit = nullptr;
sead::Atomic<u32> mRefCount = 0;
sead::Atomic<s32> mRefCount = 0;
private:
void unlinkProcUnit_();