Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Firestore C++: compile ExecutorLibdispatch in Objective-C++ mode (#1237) | Konstantin Varlamov | 2018-05-08 |
| | | | | | | | | dispatch_queue_t is defined differently in libdispatch depending on whether the library header is being include from Objective-C (or Objective-C++) code, or else from C or C++ code. Make sure that all source files in Firestore that include executor_libdispatch.h are compiled in the same mode (Objective-C++) to avoid linker errors. | ||
* | C++ migration: add AsyncQueue, the C++ version of FSTDispatchQueue (#1176) | Konstantin Varlamov | 2018-05-07 |
AsyncQueue is a queue that executes given operations asynchronously, enforcing that only a single operation is executing at any given time, and that in-progress operations don't spawn more operations. The actual execution is delegated to a platform-specific executor. Executor is an interface for a FIFO queue that executes given operations serially. Two implementations of Executor, one using libdispatch and the other using C++11 standard library, are provided. AsyncQueue is not used anywhere in the code base at this point. |