
21 Sep
2011
21 Sep
'11
8:32 p.m.
Peter Foelsche <foelsche <at> sbcglobal.net> writes:
On UNIXs one does not get around signals. They are used for everything. E.g. using memory mapped io is impossible without dealing with signals. E.g. somebody may edit the file which is mapped into your process thereby truncating it and invalidating some part of the memory. Or one may be writing into a sparse file via memory mapped io and the result of "out of disk space" is also a signal.
Then there are such sick solutions as setjmp()/longjmp(). Could they be packed into some class to enable some kind of structured exceptions on UNIXs?
boost::execution_monitor deals with these issues. From what I understood this is exactly what you want. Gennadiy