public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Rafael Rodríguez Velilla <rrv@tid.es>
To: ecos <ecos-discuss@sourceware.cygnus.com>
Subject: Re: [ECOS] question about "Cyg_Scheduler" class.
Date: Mon, 23 Jul 2001 04:39:00 -0000	[thread overview]
Message-ID: <3B5BDB7B.47C68475@tid.es> (raw)
In-Reply-To: <9860C773D04D834D83FD6FAD00A61E930F2034@gctsemi.gctsemi.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

Tony Ko wrote:

> hi.
> Cyg_Scheduler has a member fuction named start( ).
>
> // Start execution of the scheduler
>     static void start() __attribute__ ((noreturn));

> above sentense shows that.
> but I don't know the meaning of "__attribute__ ((noreturn))".
> so could you tell me what this is for?

   That attribute tells gcc that when you invoque that member function
you expect that it will never return from it, so the compiler can do
some optimisations (it doesn't have to save the context of the calling
function).

  Once the scheduler is started it gives the control of the CPU to the
threads and never finishes ... is a non return function.




--
Rafael Rodríguez Velilla        rrv@tid.es
Telefónica I+D          http://www.tid.es
Telf: +34 - 91 337 4270



      parent reply	other threads:[~2001-07-23  4:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-20 20:36 Tony Ko
2001-07-23  1:51 ` Rafael Rodríguez Velilla
2001-07-23  4:39 ` Rafael Rodríguez Velilla [this message]

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=3B5BDB7B.47C68475@tid.es \
    --to=rrv@tid.es \
    --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).