S
Sreekanth
Hi All
I am trying to write a code in which I have to access an array of
jmp_buf
so i have declared it as jmp_buf mybuf[]
Now when i am doing a longjmp
like
longjmp(mybuf,1)
and trying to use a for loop to iterate and check for setjmp condition
for(i=0;i <mybuffsize; i++)
if(setjmp(mybuf)
dosomething();
But it is giving me a segementation fault and telling me that longjmp
is not able to access the memory location for corresponding setjmp can
anyone suggest me a better way.
I am trying to implement multiple threads using setjmp/longjmp
Sreekanth Ramakrishnan
I am trying to write a code in which I have to access an array of
jmp_buf
so i have declared it as jmp_buf mybuf[]
Now when i am doing a longjmp
like
longjmp(mybuf,1)
and trying to use a for loop to iterate and check for setjmp condition
for(i=0;i <mybuffsize; i++)
if(setjmp(mybuf)
dosomething();
But it is giving me a segementation fault and telling me that longjmp
is not able to access the memory location for corresponding setjmp can
anyone suggest me a better way.
I am trying to implement multiple threads using setjmp/longjmp
Sreekanth Ramakrishnan