From: Jonathan Larmour <jlarmour@redhat.co.uk>
To: jens.ohlund@secrc.abb.se
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Threads and Handles
Date: Wed, 12 Jul 2000 17:19:00 -0000 [thread overview]
Message-ID: <396D0B21.C006C242@redhat.co.uk> (raw)
In-Reply-To: <OF543AA98A.BC20C1FF-ONC1256913.00212F77@secrc.abb.se>
[ Sorry for the delay - I was away ]
jens.ohlund@secrc.abb.se wrote:
>
> Deletion of thread:
> doJVMAgain = FALSE;
> endJVMLoop = true;
> while (doJVMAgain == FALSE)
> cyg_thread_delay(1);
> while (cyg_thread_delete(threadJVM) == FALSE);
>
> This is the code the thread is running:
[snip]
>
> while (doJVMAgain) {
> endJVMLoop = false;
[snip]
> }
>
> bindataSize = 0;
> doJVMAgain = true;
> }
I don't know the priorities of the threads here, but if they are not equal,
the cyg_thread_delete may not do what you expect. You should change that to
while (cyg_thread_delete(threadJVM) == FALSE)
cyg_thread_delay(1);
Other than that I can't particularly see what's wrong. Perhaps you would be
best sending the list (not me personally) a small *self-contained* test
case showing the problem. Also tell us your target.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
next prev parent reply other threads:[~2000-07-12 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-04 23:04 jens.ohlund
2000-07-12 17:19 ` Jonathan Larmour [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-07-04 8:21 jens.ohlund
2000-07-04 8:37 ` Jonathan Larmour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=396D0B21.C006C242@redhat.co.uk \
--to=jlarmour@redhat.co.uk \
--cc=ecos-discuss@sourceware.cygnus.com \
--cc=jens.ohlund@secrc.abb.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).