maidsafe/MaidSafe-Drive — pull request #15 by breese (2014-07-07 15:13:23+00:00)
Title: Thread sanitising via std::enable_shared_from_this

Directory object is changed to be a shared_ptr to avoid various thread problems related to its timer during destruction.

Directory now has to be constructed using the Directory::Create() functions.

The HasPending loop in DirectoryHandler::RenameDifferentParent() is used to ensure that the SetNewParent() operation has completed. It not the final solution, but it works for the purpose.