Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
threads: export should_yield / yield into thread_impl
Usually we can access static methods of a thread, such as yield, easily by just calling seastar::thread::yield. Since the earliest commit that introduces threads, however (cd0ae46), we have a separate "thread_impl" with some of the methods alternatively exported. Although that is never explicitly explained in that commit, my understanding is that using the thread methods directly requires us to import thread.hh, which brings in the reactor, which simply has no place in the future core machinery. In preparation to yield from inside the future object, this patch exports should_yield and yield into thread_impl. v2: should_yield can now be inline and will not generate an explicit out of line call. Signed-off-by: Glauber Costa <[email protected]>
- Loading branch information