public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Fabrice Gautier <Fabrice_Gautier@sdesigns.com>
To: "Ecos-List (E-mail)" <ecos-discuss@sourceware.cygnus.com>
Subject: [ECOS] About Flags
Date: Fri, 29 Sep 2000 16:50:00 -0000	[thread overview]
Message-ID: <8AE4B526B977D411841F00A0CC334020052C7A@cuz-exchange.sdesigns.net> (raw)

Hi,

I would like to know if it is safe to destroy a flag structure after it has
been signaled.

I mean:

I have several thread waiting for the flag - and they know that after wait
return the flag pointer they have will be invalid.
And one thread signaling the flag and then deleting it.

So is it possible that between the moment the corresponding cyg_flag_setbits
returns and the moment cyg_flag_wait returns the cyg_flag_wait function try
to access the flag structure ?

Additionnaly, I would like to wait for an exact value of the flag, is this
possible? It seems only supported operations are AND and OR.

Thanks
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 









             reply	other threads:[~2000-09-29 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-29 16:50 Fabrice Gautier [this message]
2000-10-06  5:45 ` Hugo Tyson

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=8AE4B526B977D411841F00A0CC334020052C7A@cuz-exchange.sdesigns.net \
    --to=fabrice_gautier@sdesigns.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /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).