This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
try-catch block
- From: "Serguei I. Ivantsov" <admin at gsc-game dot kiev dot ua>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 27 Aug 2002 10:56:40 +0300
- Subject: try-catch block
Hi!
Please help me to port this code to Linux from M$ (c++)
//...
try{
lock_semaphore();
something_terrible_function(); // can produce any kind of exception
unlock_semaphore();
}catch(...){
unlock_semaphore();
};
// ...
It is important that process must continue execution and unlock semaphore
after any exception in something_terrible_function()
--
Regards,
Serguei I. Ivantsov
GSC Game World