![]() |
Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
|
#include <xlt_quote_define.h>
Public 属性 | |
| int | cpu_affinity = -1 |
| 线程CPU亲和力设置,-1表示不设置亲和力,0表示绑定到CPU0,1表示绑定到CPU1,以此类推 | |
| bool | busy_poll = false |
| 纯忙等模式,为true时收包空闲使用_mm_pause纯用户态自旋,不产生syscall;为false时使用sched_yield让出CPU。绑定隔离核场景建议设为true。 | |
| uint16_t | mc_count = 0 |
| 线程负责接收的行情组播数量,决定了mc_types列表的长度 | |
| QuoteMCType | mc_types [64] |
| 线程负责接收的行情组播类型列表,每个组播类型对应一条行情组播地址记录 | |
| bool x1::quote_thread_t::busy_poll = false |
纯忙等模式,为true时收包空闲使用_mm_pause纯用户态自旋,不产生syscall;为false时使用sched_yield让出CPU。绑定隔离核场景建议设为true。
| int x1::quote_thread_t::cpu_affinity = -1 |
线程CPU亲和力设置,-1表示不设置亲和力,0表示绑定到CPU0,1表示绑定到CPU1,以此类推
| uint16_t x1::quote_thread_t::mc_count = 0 |
线程负责接收的行情组播数量,决定了mc_types列表的长度
| QuoteMCType x1::quote_thread_t::mc_types[64] |
线程负责接收的行情组播类型列表,每个组播类型对应一条行情组播地址记录