riscvarchive / riscv-fesvr

RISC-V Frontend Server
Other
62 stars 83 forks source link

add switch_to_target to tsi #19

Closed donggyukim closed 7 years ago

donggyukim commented 7 years ago

This is useful when we override the idle method to decrease polling frequency.

aswaterman commented 7 years ago

What's going on here? Seems like bad abstraction to let a user of the class switch coroutines.

donggyukim commented 7 years ago

Otherwise, there's no way to switch to the target thread when we implement its subclass. This is still hidden to the user because it's protected.