context_switcher.cpp 279 Bytes
Newer Older
1
#include "context_switcher/context_switcher.h"
2

3 4 5 6 7 8 9 10 11
namespace context_switcher {

continuation switch_context(continuation &&cont) {
  assembly_bindings::continuation_t cont_pointer = cont.consume();

  return continuation{assembly_bindings::__cs_switch_context(cont_pointer)};
}

}