summaryrefslogtreecommitdiff
path: root/include/mbgl/actor/mailbox.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] allow self closing mailbox/actorIvo van Dongen2017-05-271-1/+1
|
* [core] Block in Mailbox::close() until neither receive nor push are in progressJohn Firebaugh2017-05-241-2/+4
| | | | | | | | | | | | | | Otherwise, an ActorRef that's in the process of sending a message could attempt to access an invalid Scheduler reference: Thread 1 Thread 2 -------------------------------------------------- Scheduler::Scheduler Actor::Actor weakMailbox.lock() Actor::~Actor Scheduler::~Scheduler mailbox->push() scheduler.schedule() 💣
* [core] Move actor/{mailbox,scheduler}.hpp to public include directoryJohn Firebaugh2017-03-281-0/+33
Map constructor takes Scheduler&, and consumers are expected to define an implementation. Therefore the interface must be public.