2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
6 #include "LocatableEntry.h"
8 #include "AutoLocker.h"
10 #include "LocatableDirectory.h"
13 // #pragma mark - LocatableEntryOwner
16 LocatableEntryOwner::~LocatableEntryOwner()
21 // #pragma mark - LocatableEntry
24 LocatableEntry::LocatableEntry(LocatableEntryOwner
* owner
,
25 LocatableDirectory
* parent
)
29 fState(LOCATABLE_ENTRY_UNLOCATED
)
32 fParent
->AcquireReference();
36 LocatableEntry::~LocatableEntry()
39 fParent
->ReleaseReference();
44 LocatableEntry::LastReferenceReleased()
46 fOwner
->LocatableEntryUnused(this);