added idb_lock functions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user