HomePhabricator
Diffusion Comm 05d47266a2b4

Implement GlobalDbSingleton API for both platforms

Description

Implement GlobalDbSingleton API for both platforms

Summary: Implements GlobalDBSingleton API for both platforms. On iOS we use main queue and atomic boolean for synchronization. On Android we enable multithreading from the begining.

Test Plan: Spawn multiple threads in AppDelegate (for instance multiple instances of WorkerThread) and schedule database tasks from them using GlobalDBSingletonIOSProxy API. Do it before and after CommCoreModule instantiation. No crash should happen.

Reviewers: tomek, atul, jon

Reviewed By: tomek

Subscribers: jon, ashoat, abosh

Differential Revision: https://phab.comm.dev/D5233

Details

Provenance
marcinAuthored on Oct 5 2022, 2:32 AM
Reviewer
tomek
Differential Revision
D5233: Implement GlobalDbSingleton API for both platforms
Parents
rCOMMd64d2f132e42: Define global singleton db C++ API.
Branches
Unknown
Tags
Unknown