core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class TaggedScheduler;
|
||||
|
||||
@@ -83,4 +83,4 @@ private:
|
||||
EstablishedActor<Object> target;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
/**
|
||||
An `ActorRef<O>` is a *non*-owning, weak reference to an actor of type `O`.
|
||||
@@ -57,4 +57,4 @@ private:
|
||||
std::weak_ptr<Mailbox> weakMailbox;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
template <class Object>
|
||||
class EstablishedActor;
|
||||
@@ -56,4 +56,4 @@ private:
|
||||
friend class Actor<Object>;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
/**
|
||||
An `EstablishedActor<O>` is one half of the pair of types that comprise an
|
||||
@@ -107,4 +107,4 @@ private:
|
||||
AspiringActor<Object>& parent;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <mapbox/std/weak.hpp>
|
||||
#include <mbgl/actor/scheduler.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class Scheduler;
|
||||
class Message;
|
||||
@@ -61,4 +61,4 @@ private:
|
||||
std::queue<std::unique_ptr<Message>> queue;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <future>
|
||||
#include <utility>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
// A movable type-erasing function wrapper. This allows to store arbitrary
|
||||
// invocable things (like std::function<>, or the result of a movable-only
|
||||
@@ -100,4 +100,4 @@ std::unique_ptr<Message> makeMessage(std::promise<ResultType>&& promise,
|
||||
}
|
||||
|
||||
} // namespace actor
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/actor/actor.hpp>
|
||||
#include <mbgl/actor/optional_actor_ref.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class TaggedScheduler;
|
||||
|
||||
@@ -79,4 +79,4 @@ private:
|
||||
OptionalActorRef<Object> selfRef;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <mbgl/actor/actor_ref.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class TaggedScheduler;
|
||||
|
||||
@@ -37,4 +37,4 @@ private:
|
||||
std::optional<ActorRef<Object>> actorRef;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class Mailbox;
|
||||
|
||||
@@ -147,10 +147,10 @@ public:
|
||||
scheduler->scheduleAndReplyValue(tag, task, reply);
|
||||
}
|
||||
|
||||
const mbgl::util::SimpleIdentity tag;
|
||||
const mln::util::SimpleIdentity tag;
|
||||
|
||||
private:
|
||||
std::shared_ptr<Scheduler> scheduler;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
Reference in New Issue
Block a user