This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cancelling


"Bossom, John" wrote:
> 
> Now, originally I implemented the pthread_cancel mechanism
> with Microsoft's SEH (Structured Exception Handling)
> and internally the BAD DEED is being thrown using this
> mechanism and being caught by the thread start routine.
> 
> You should check to see if someone changed the thread
> start routine to use the C++ exception mechanism.

The code currently seems to support three mechanisms:

if _MSC_VER is defined, it seems to be using SEH.

otherwise, if __cplusplus is defined, it seems to
be using C++ EH.

otherwise, it just starts the thread without any
exception handling.

Now the question is how the precompiled
DLL on the net was compiled.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]