![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
The message hash map used to register external messages. More...
Data Fields | |
struct { | |
struct msg_map_node * nodes | |
The array of hash map nodes. | |
map_size_t capacity_mo | |
The current capacity of this hashmap minus one. More... | |
atomic_int count | |
The count of entries which can still be inserted. More... | |
}; | |
struct { | |
spinlock_t l | |
Synchronizes access from the worker threads. | |
} | locks [MAX_THREADS] |
The message hash map used to register external messages.
Definition at line 41 of file remote_msg_map.c.
map_size_t msg_map::capacity_mo |
The current capacity of this hashmap minus one.
A capacity in the form 2^n - 1 eases modulo calculations
Definition at line 47 of file remote_msg_map.c.
atomic_int msg_map::count |
The count of entries which can still be inserted.
Takes into account load factor, when 0 we have to resize
Definition at line 50 of file remote_msg_map.c.