When I was reading seastar source code, I noticed that there is a union structure called tx_side
which has only one member. Is this some hack to deal with a certain problem?
FYI, I paste the tx_side
structure below:
union tx_side {
tx_side() {}
~tx_side() {}
void init() { new (&a) aa; }
struct aa {
std::deque<work_item*> pending_fifo;
} a;
} _tx;