public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* RE: cancelling
@ 2000-07-10  9:35 Bossom, John
  2000-07-12  4:21 ` cancelling Thomas Sailer
  0 siblings, 1 reply; 3+ messages in thread
From: Bossom, John @ 2000-07-10  9:35 UTC (permalink / raw)
  To: 'Thomas Sailer', pthreads-win32

Check to see if the code base for pthread is wrapping
an exception handler around your thread mainline
(the original code had an internal routine called "threadStart"
which used Microsoft's Structured Exception Handling for catching all
exceptions raised in your thread.)
The cancel mechanism was implemented using this strategy.
Now, your thread is recognizing the cancel (the exception
hex value is human readable: BAD DEED) and should have
been caught by the threadStart wrapper, which would have
gracefully shut down your thread.

I am not familiar with the code base anymore so you will
have to ask others... ie Ross

-----Original Message-----
From: Thomas Sailer [ mailto:sailer@ife.ee.ethz.ch ]
Sent: Monday, July 10, 2000 11:55 AM
To: pthreads-win32@sourceware.cygnus.com
Subject: cancelling


I'm trying to cancel a thread that is blocking
in pthread_cond_wait. When I do this, I get:
gdb: unknown target exception 0xebaddeed at 0x77e79b01

I'm using the precompiled snapshot 1999-11-02,
the rest of the program is compiled with the current
(as of two weeks ago) cygwin gcc (with -mno-cygwin).

What am I missing?

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cancelling
  2000-07-10  9:35 cancelling Bossom, John
@ 2000-07-12  4:21 ` Thomas Sailer
  2000-07-12  4:46   ` Announcing a commercial product based on pthread-win32 Tristan Savatier
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Sailer @ 2000-07-12  4:21 UTC (permalink / raw)
  To: Bossom, John; +Cc: pthreads-win32

"Bossom, John" wrote:

> Check to see if the code base for pthread is wrapping
> an exception handler around your thread mainline
> (the original code had an internal routine called "threadStart"
> which used Microsoft's Structured Exception Handling for catching all
> exceptions raised in your thread.)

The thread I'm trying to cancel was created with pthread_create,
and internally the thread routine is started through
_pthread_threadStart, which should be fine.

The thread that tries to cancel is the initial thread, i.e.
the one that called _main.

> Now, your thread is recognizing the cancel (the exception
> hex value is human readable: BAD DEED) and should have

I thought that the constant wasn't chosen arbitrarily :))

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Announcing a commercial product based on pthread-win32
  2000-07-12  4:21 ` cancelling Thomas Sailer
@ 2000-07-12  4:46   ` Tristan Savatier
  0 siblings, 0 replies; 3+ messages in thread
From: Tristan Savatier @ 2000-07-12  4:46 UTC (permalink / raw)
  To: pthreads-win32

PocketTV ( http://www.pockettv.com )

It is an MPEG Movie Player for Pocket PC devices (e.g.
iPaq, Cassiopeia, Jornada).

It is built on pthread-win32 (ported to Windows-CE).

Works flawlessly.

Thanks you all!

-t

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-12  4:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-10  9:35 cancelling Bossom, John
2000-07-12  4:21 ` cancelling Thomas Sailer
2000-07-12  4:46   ` Announcing a commercial product based on pthread-win32 Tristan Savatier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).