Adjust thread index type to uint16 for future expansion & Organize stellar directory files
This commit is contained in:
@@ -44,12 +44,12 @@ static inline int is_keepalive_packet(const char *data, int len)
|
||||
* Public API
|
||||
******************************************************************************/
|
||||
|
||||
struct marsio_io *marsio_io_new(const char *app_symbol, const char *dev_symbol, uint16_t *cpu_mask, uint8_t nr_threads)
|
||||
struct marsio_io *marsio_io_new(const char *app_symbol, const char *dev_symbol, uint16_t *cpu_mask, uint16_t nr_threads)
|
||||
{
|
||||
int opt = 1;
|
||||
cpu_set_t coremask;
|
||||
CPU_ZERO(&coremask);
|
||||
for (uint8_t i = 0; i < nr_threads; i++)
|
||||
for (uint16_t i = 0; i < nr_threads; i++)
|
||||
{
|
||||
CPU_SET(cpu_mask[i], &coremask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user