
I assume resuming from a checkpoint would also require to restore the registers, flags, stack (pointer), instruction pointer etc. - I'd like to know if your lib supports only intel or some other architectures too.
Oliver
Your assumption is correct. However, the actual implementation is done via getcontext()/setcontext(), so it is not hard-wired to a specific hardware architecture.
You know that ucontext-stuff (getcontext()/setcontext()/swapcontext()/makecontext()) is deprecated by POSIX 2003 and removed by POSIX 2008? For instance glibc doesn't implement those functionality on ARM. I don't know your implementation but on x86_64 the makecontext() function of glibc can not handle pointers as arguments (var-args for makecontext()). comment from makecontext.c (glibc-2.14): 'This implementation currently only handles integer arguments.' If you want to pass a pointer to the context-function via makecontext() you get a truncated address. Oliver -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de