added idb_lock functions

This commit is contained in:
2025-11-24 23:51:00 +05:00
parent 571fdd900f
commit 7a3808ba59
12 changed files with 279 additions and 118 deletions

View File

@@ -9,10 +9,11 @@
typedef struct ClientCLI {
Client* client;
IncrementalDB* db;
Table* db_servers_table;
pthread_mutex_t servers_cache_mutex;
List(ServerInfo) servers_cache_list; // index is id
HashMap(u64) servers_addr_id_map; // key is server address
struct {
Table* table;
List(ServerInfo) list; // index is id
HashMap(u64) addr_id_map; // key is server address
} servers;
} ClientCLI;
void ClientCLI_construct(ClientCLI* self);