arch-repo-manager/libpkg
Martchus 7ade757c8d Avoid locking whole config when updating DBs
* Only lock the config for writing the reloading the config file
* Make sure all write operations to the database acquire an "update mutex"
  to ensure only one write operation happens at a time
* Do *not* acquire any additional locks when reading from a database as it
  should be safe to do so even when a write operation happens because
    * LMDB read and write transactions can happen at the same time
    * The package cache has its own mutex anyways
    * Write ops to the package cache try to lock the "update mutex" to
      prevent writing "old" data to the cache during updates
* Make "lastUpdate" atomic to avoid locking the config when accessing it
2022-03-05 18:55:52 +01:00
..
algo Limit results returned by the API for better scalability 2022-02-25 00:29:43 +01:00
data Avoid locking whole config when updating DBs 2022-03-05 18:55:52 +01:00
parser Distinguish Android libs from GNU/Linux libs 2022-03-04 21:48:28 +01:00
testfiles Handle case when a split package overrides the archs from the base 2021-08-28 00:25:09 +02:00
tests Distinguish Android libs from GNU/Linux libs 2022-03-04 21:48:28 +01:00
CMakeLists.txt Distinguish Android libs from GNU/Linux libs 2022-03-04 21:48:28 +01:00
global.h Initial import 2021-02-08 23:53:56 +01:00
lmdb-safe lmdb: Configure project to use lmdb and lmdb-safe 2021-12-07 22:48:42 +01:00