Hi Stas,

it looks good to me, if it works well and is the cleanest solution by all
means go for it; for now it's good to have it in the separate branch. Maybe
we should just call them coroutines, as that's what the C in PCL stands
for, and as threads confuse me into thinking they run in parallel.

I experimented with sigsetjmp/siglongjmp for DPMI in 2006 (see git show
5504195d1), as essentially the DPMI code and DOSEMU code are two
coroutines, but it is cleaner and saves an implicit sigprocmask call
restoring scp and dropping out of the signal handler (aka calling
sigreturn); setcontext() and friends don't support segment registers so
can't jump into DPMI code, but a modified PCL may potentially help clarify
here too.

Bart
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to