snowflake changes from global static variables to one instance per thread

This commit is contained in:
luwenpeng
2024-08-23 15:21:07 +08:00
parent 3014e0feef
commit 6808e6ba29
30 changed files with 420 additions and 167 deletions

View File

@@ -6,7 +6,6 @@ extern "C"
#endif
#include "packet_io.h"
#include "snowflake.h"
#include "ip_reassembly.h"
#include "session_manager.h"
@@ -26,6 +25,12 @@ struct schedule_options
uint64_t packet_io_yield_interval; // range: [1, 60000] (ms)
};
struct snowflake_options
{
uint8_t snowflake_base;
uint8_t snowflake_offset;
};
struct stellar_config
{
struct packet_io_options pkt_io_opts;