Hi
what sort of calls are similar to pthread_cleanup_push/pop under windows (specifically in CE I need them)??
Hi
what sort of calls are similar to pthread_cleanup_push/pop under windows (specifically in CE I need them)??
and actually to be combined with CreateThread()
(the program now uses this (CreateThread) and i have to minimize the modifications for my purpouses..Code:HANDLE CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, DWORD dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId );
There is nothing similar built in. You will have to do what's needed yourself.
Do you need pthread-cancellation semantics? Or you do you just want to run some functions when the thread exits?
If the latter and it's C++, just use objects with destructors.
gg