Closed GoogleCodeExporter closed 9 years ago
Hi there.
Thanks for the patch; actually I've just created an extern "C" block enclosing
all the functions together.
Additionaly, I also replaced:
pthread_exit(PTHREAD_CANCELED);
with:
pthread_cancel( pthread_self() );
So there's no need to define PTHREAD_CANCELED anymore.
I'm setting this issue to "Accepted" and look forward to your reply. Could you
please svn-update and confirm the library is working for you this time?
By the way, if you need to use native C++ exceptions, please define
E4C_NOKEYWORDS and simply use E4C_TRY, E4C_CATCH, E4C_FINALLY and E4C_THROW.
Best regards.
Original comment by guillermocalvo
on 11 Jan 2013 at 2:10
Hi back.
Thanks for your reply; the extern "C" block is working properly.
However with the newest version I'm getting
"undefined reference to pthread_cancel" from the compiler, so I changed these
lines back to what they were in rev408 and added my define of PTHRREAD_CANCELED.
I don't know why exactly my compile environement knows neither PTHREAD_CANCELED
nor pthread_cancel. If you wonder which environment that is: I'm developing for
SymbianOS with the SDK "Symbian1Qt473" and the compiler used is mingw32.
Best regards.
Original comment by matheoe...@web.de
on 18 Jan 2013 at 10:58
I've just added a local definition for PTHREAD_CANCELED when none is provided
by `pthread.h`.
I also added a compile time parameter so the library is prevented from calling
`pthread_cancel` (and therefore failing to compile in case it doesn't exist).
You just need to define the macro MISSING_PTHREAD_CANCEL at compiler level. I
hope this approach suits your needs.
Please let me know if you have any other issues.
Original comment by guillermocalvo
on 18 Jan 2013 at 8:15
It seems to be working fine.
Original comment by guillermocalvo
on 3 Mar 2013 at 12:28
Original issue reported on code.google.com by
matheoe...@web.de
on 10 Jan 2013 at 2:44Attachments: