Function copyContext [src]
Copies one context to another, updating any internal pointers
Prototype
pub fn copyContext(source: *const ThreadContext, dest: *ThreadContext) void
Parameters
source: *const ThreadContext
dest: *ThreadContext
Source
pub fn copyContext(source: *const ThreadContext, dest: *ThreadContext) void {
if (!have_ucontext) return {};
dest.* = source.*;
relocateContext(dest);
}