From: Thomas Lockhart <Thomas.Lockhart@domain.hid>
To: "haitaozhumail-disc@domain.hid" <haitaozhumail-disc@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] address spaces of real-time task and standard linux process
Date: Mon, 24 Oct 2011 09:25:18 -0700 [thread overview]
Message-ID: <4EA5916E.2030708@domain.hid> (raw)
In-Reply-To: <1319401552.9644.YahooMailNeo@domain.hid>
On 10/23/2011 01:25 PM, haitaozhumail-disc@domain.hid wrote:
> Hi All,
>
> Do a standard Linux process and a real-time task (spawned by the
> standard Linux process with rt_task_create and rt_task_start ) share the
> same address space? More specifically, I have a C++ program like this:
...
> Can the function demo() correctly access the object created in main()?
> What if pA is a smart pointer defined in Boost library?
Yes, yes, and yes (though I didn't look at the actual code, the address
space is shared).
For things like smart pointers, just make sure that someone is keeping a
reference to the object so the reference count does not go to zero.
hth
- Tom
next prev parent reply other threads:[~2011-10-24 16:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-23 20:25 [Xenomai-help] address spaces of real-time task and standard linux process haitaozhumail-disc
2011-10-24 16:25 ` Thomas Lockhart [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-24 21:04 Tom Z
2011-10-25 8:06 ` Gilles Chanteperdrix
2011-10-25 10:50 ` Gilles Chanteperdrix
2011-10-26 14:13 ` Tom Z
2011-10-26 14:54 ` Gilles Chanteperdrix
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=4EA5916E.2030708@domain.hid \
--to=thomas.lockhart@domain.hid \
--cc=haitaozhumail-disc@domain.hid \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.