0
asynchronous_state_machine의 processor_handle에서 스케줄러를 참조 할 수 있습니까?boost asynchronous_state_machine
코드 :
struct A {
A(sc::fifo_scheduler<>::processor_handle& h):player_ref(h){}
sc::fifo_scheduler<>::processor_handle& player_ref;
void a_func(){
//I have to send event to player, but don't have scheduler
scheduler.queue_event(player_ref_, ...); //?
}
};
sc::fifo_scheduler<> scheduler(true);
sc::fifo_scheduler<>::processor_handle player =
scheduler1.create_processor<Player>();
A a(player);